In the official W3c webdirver documentation, it's clearly stated that the location strategies are:  State   Keyword CSS selector    "css selector" Link text selector  "link text" Partial link text selector  "partial link tex...
I've been testing out Selenium with Chromedriver and I noticed that some pages can detect that you're using Selenium even though there's no automation at all. Even when I'm just browsing manually just using chrome through Selenium a...
For the portal I am testing now, I came with the problem that I could not create any xpath locators, after some time I figured out that it was because of an '#document', this cuts the path and makes the simple "copy xpath" to direct...
I'm using Selenium2 for some automated tests of my website, and I'd like to be able to get the return value of some Javascript code.  If I have a foobar() Javascript function in my webpage and I want to call that and get the return value in...
In protractor, there are, basically, 3 ways to check if an element is present:  var elm = element(by.id("myid"));  browser.isElementPresent(elm); elm.isPresent(); elm.isElementPresent();   Are these options equivalent and interchangeable, a...
I am using Java Selenium project for web page automation. The web page contains lots of multi-level shadow-root DOM elements that I am not able to interact with using selenium findElement method.  I have tried the following solutions:   deep css (D...
I've been using selenium (with python bindings and through protractor mostly) for a rather long time and every time I needed to execute a javascript code, I've used execute_script() method. For example, for scrolling the page (python):  dri...
I'm using Selenium WebDriver to try to insert an external javascript file into the DOM, rather than type out the entire thing into executeScript.  It looks like it properly places the  node into the DOM, but then it just disregards the source, i....
Is it possible to find elements inside the Shadow DOM with python-selenium?  Example use case:  I have this input with type="date":    <input type="date">     And I'd like to click the date picker button on the right and cho...
The Problem:  In our rather big test codebase, we are using different keyboard shortcuts. For instance, to copy selected text we are using CTRL/COMMAND + C, to paste CTRL/COMMAND + v, to open a new tab CTRL/COMMAND + T etc.  To keep tests work on mul...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.