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...
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...
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...
What is the difference between  executeAsyncScript and executeScript?  How can i use event such as window.onload? I tried something like this   ((JavascriptExecutor) driver).executeAsyncScript("window.onload = function() {alert('Hello')}&...
Because Webdriver waits for the entire page to load before going on to the next line, I think disabling images, css and javascript will speed things up.  from selenium import webdriver from selenium.webdriver.firefox.firefox_profile import FirefoxPro...
Selenium has a convenient mechanism for pulling dozens or hundreds of elements from the DOM fairly efficiently and in a single fast round-trip:  buttons = driver.find_elements_by_css_selector('button')   The result buttons can be a list of do...
The runScript command in selenium is really useful, and I'm using it to total values in a table and then store the value like this  <tr>     <td>runScript</td>     <td>var cumulative = 0.0; $('table.quote-review-group-...
Is there a known solution to perform Eval (Javascript execution) in Webdriver, Ruby bindings?   The equivalent of the following example in Java.   WebElement element = driver.findElement(By.id( "foo" ));  String name = (String) ((JavascriptEx...
Checking the protractor documentation, I see there is a option to run protractor without using Selenium server using directConnect: true flag.  What is the difference between running protractor tests with a selenium server and without a selenium serv...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.