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

learn more… | top users | synonyms

101
votes
17answers
62k 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)
26
votes
16answers
24k views

How do I maximize the browser window in WebDriver (Selenium 2)?

Is there a way to maximize the browser window using WebDriver (Selenium 2) with C#?
16
votes
8answers
31k 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. ...
15
votes
10answers
33k 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 ...
13
votes
4answers
2k views

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

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 ...
13
votes
4answers
3k views

Unable to obtain stable firefox connection in 60 seconds (127.0.0.1:7055)

While testing scenario by cucumber i'm getting the following error when running rspec tests unable to obtain stable firefox connection in 60 seconds (127.0.0.1:7055) ...
12
votes
7answers
16k views

Webdriver Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms

I have box where I run tests. It seems like Jenkins would ssh in and execute commands described in the specific job that's running. Here I am trying to run my Selenium Webdriver tests, but it tells ...
11
votes
1answer
1k views

Is there a way to test responsive CSS with Selenium?

The developers at my company have implemented our website to be CSS responsive, and I am confused how to leverage Selenium to test their work. I have been using Selenium WebDriver (Selenium 2) with ...
8
votes
2answers
8k views

Difference between webdriver.get() and webdriver.navigate()

What is the difference between get() and navigate() methods? Does any of this or maybe another method waits for page content to load? What do I really need is somehing likeselenium`s 1.0 ...
8
votes
1answer
7k views

webdriver - wait for element

I needed something similar to waitForElementPresent to check whether element is displayed before I clicked it. I thought the implicitWait should cover this. So I used the following: ...
8
votes
2answers
2k views

WebDriver and IE10 very slow input

When I'm trying to execute tests in the latest IE, I see that input is very slow : it takes like 5 seconds for every character to appear in the input field. All security zones are enabled and the ...
8
votes
3answers
3k 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: ...
8
votes
2answers
290 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 ...
7
votes
1answer
1k views

Chromedriver is extremely slow on a specific machine using Selenium Grid and .net

Overview: Chromedriver works normally on one machine but extremely slowly on two other identical machines. Setup: Selenium Webdriver using .Net for coding and Selenium Grid for distributing the ...
7
votes
3answers
713 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 ...

1 2 3 4 5 138
15 30 50 per page