Tagged Questions

Selenium-Webdriver provides an API to control and communicate with web browsers.

learn more… | top users | synonyms

77
votes
15answers
39k views

Take a screenshot with Selenium WebDriver

Does anyone know if it's possible to take a screenshot using Selenium WebDriver? (Note: Not Selenium RC)
13
votes
3answers
1k views

Tracking with Java Script if Ajax request is going on in a webpage or Intercept XMLHttpRequest

I am using Selenium WebDriver for crawling a web site(only for example, I will be crawling other web sites too!) which has infinite scroll. Problem statement: Scroll down the infinite scroll page ...
12
votes
10answers
24k views

How do I set a an option as selected using selenium-webdriver (selenium 2.0) client in ruby

I am trying to get familiar with the new ruby selenium-webdriver as it appears more intuitive mostly than the previous version of selenium and the ruby driver that went with it. Also, i had trouble ...
11
votes
5answers
16k views

Selenium WebDriver and DropDown Boxes

If I want to select an option of a dropdown box, there are several ways to do that. I always used: driver.findElement(By.id("selection")).sendKeys("Germany"); But that didn't work every time. ...
6
votes
2answers
74 views

How to execute code only on test failures with python unittest2?

I have some class-based unit tests running in python's unittest2 framework. We're using Selenium WebDriver, which has a convenient save_screenshot() method. I'd like to grab a screenshot in tearDown() ...
6
votes
6answers
2k views

How to perform drag and drop using selenium-webdriver when target and destination element are in different frames?

I have to drag an image and drop it into a CQ5 component. The image and component are in different frames. Here is the code which did not work as webelement destinationcould not be found when the ...
6
votes
3answers
548 views

Failed to connect to binary FirefoxBinary with Selenium in Maven

I am running some Selenium-Tests. When I start them directly from Eclipse everything works fine. But when I Start them through Maven there the following Exception occurs: ...
6
votes
1answer
132 views

Running Selenium test on nUnit not executing scripts

When I was running my tests on C#-visualnUnit it runs successfully but when I was running it on Nunit only and just having the dll on the project it out puts like this: Started ChromeDriver ...
6
votes
2answers
133 views

wait until page refreshed

Here is a description of what I am trying to do using Selenium Webdriver in Python: I have my website which takes as input various parameters for a specific product and outputs a price for the product ...
5
votes
7answers
971 views

Is there a Selenium 2 version of Selenium IDE?

I'm new to Selenium and I'm a bit confused about the version numbers. Selenium 2.0 was released in 2011. I just downloaded the Selenium IDE Firefox extension and it is version 1.7.2. Is there also ...
5
votes
2answers
1k views

Selenium WebDriver (2.25) Timeout Not Working

I think I've read all the Selenium timeout questions on Stack Overflow, yet neither implicit nor explicit timeout works in my Selenium webdriver 2.25 (Python 2.7 binding) and both "no_timeout_here =" ...
5
votes
3answers
261 views

Pytest: how to skip the rest of tests in the class if one has failed?

I'm creating the test cases for web-tests using Jenkins, Python, Selenium2(webdriver) and Py.test frameworks. So far I'm organizing my tests in the following structure: each Class is the Test ...
5
votes
2answers
343 views

Selenium Grid, how to utilize WebDriver with ThreadSafeSeleniumSessionStorage.session()

I am working on a project that involves using the Selenium WebDriver and a specific Firefox Profile heavily to find elements and manage the page. For example, ...
5
votes
2answers
278 views

Getting a 404 on /wd/hub/session when I try to connect to selenium grid remotely via Python

I can see two remotes under the console but when I try to connect remotely and execute something it fails with a 404. from selenium import webdriver browser = webdriver.Remote( ...
5
votes
2answers
215 views

Cannot initialize AndroidDriver

At W2k8 64 bit I have in the android emulator instance of android 4.1 API Level 16 with ARM as CPU. After launch of it I'm running my UnitTest and on the first line var webDriver = new ...

1 2 3 4 5 50
15 30 50 per page