Tagged Questions
90
votes
15answers
50k 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)
60
votes
6answers
43k views
WebDriver (Selenium 2) API documentation
I can't locate an official class/method/properties type API reference for WebDriver anywhere, only the 5 minute guide and 'Next Step' pages located at seleniumhq, plus a few other haphazard ...
30
votes
12answers
41k views
30
votes
1answer
7k views
Cucumber and Capybara, clicking a non-link or button element
I am trying to test an inplace editor using Cucumber/Capybara/Selenium stack, but my problem is that the editor is activated by clicking a div and not a link or button. I can not seem to figure out ...
25
votes
11answers
26k views
Selenium c# Webdriver: Wait Until Element is Present
I want to make sure that an element is present before the webdriver starts doing stuff.
I'm trying to get something like this to work:
WebDriverWait wait = new WebDriverWait(driver, new ...
25
votes
4answers
12k views
Where is WebDriver's Python API Documentation? [closed]
Where can I find the "API docs" for the Python Bindings for Selenium's WebDriver?
http://code.google.com/p/selenium/wiki/PythonBindings
21
votes
7answers
15k views
Get HTML Source of WebElement in Selenium WebDriver (Python)
I'm using the Python bindings to run Selenium's webdriver.
from selenium import webdriver
wd = webdriver.Firefox()
I know I can grab a webelement like so...
elem = ...
20
votes
18answers
20k views
How do I maximize the browser window using WebDriver (Selenium 2)?
Is there a way to maximize the browser window using WebDriver (Selenium 2)?
20
votes
4answers
15k views
what's the relationship between selenium rc and webdriver?
I can see that since selenium 2.0, webdriver and selenium rc are packaged together for download. Now I primarily use webdriver, but can I bring in selenium rc in my testing scripts from now and then? ...
18
votes
8answers
11k views
selenium WebDriver StaleElementReferenceException
i get this error when running my tests:
org.openqa.selenium.StaleElementReferenceException: Element is no longer attached to the DOM
any idea on how to solve the above exception?
this happen in my ...
18
votes
3answers
7k views
Selenium Webdriver : Wait for complex page with javascript to load
I have a web application to test with selenium. There is a lot of javascript running on page load.
This javascript code is not so well written but I can't change anything.
So waiting for an element to ...
15
votes
2answers
4k views
WebDriver: get HTTP Response Code
I write Tests with Selenium2/WebDriver and want to test if HTTP Request returns an HTTP 403 Forbidden.
Is it possible to get the http response status code with web driver?
14
votes
5answers
17k views
How to check if an element is visible with WebDriver
With WebDriver from Selenium 2.0a2 I am having trouble checking if an element is visible.
WebDriver.findElement returns a WebElement, which unfortunately doesn't offer an isVisible method. I can go ...
14
votes
8answers
24k 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. ...
14
votes
5answers
1k views
page object model: why not include assertions in page methods?
First-time poster. I've been working in UI automation for many years, but was only recently introduced to/instructed to work with the Page Object Model. Most of it is common sense and includes ...