Tagged Questions
1
vote
2answers
1k views
"Element is no longer attached to the DOM” StaleElementReferenceException when selecting HTML table row
I am using Selenium 2/WebDriver for automation. I have a table and am trying to select a row in it. When the test runs, I can see the row become highlighted as if it is clicked, but then immediately I ...
0
votes
3answers
1k views
absolute Xpath is not working for Gmail login page
I have tested the Gmail login page and was trying to verify the Sign in label in the Gmail login page above the user name field. I am using FirePath to generate the Xpath. When I inspect the element ...
3
votes
3answers
5k views
Locating element by link text (anchor tag innerHTML) or xpath fails in Selenium 2.0 Webdriver
I'm using Selenium 2.0 web driver. My script keeps failing whenever I try locating something in my page. It throws an exception whether I locate the element by LinkText or by XPath.
...
2
votes
1answer
860 views
How to get XPath of a list element generated by AJAX?
When I type a keyword ("Documents 1.xml")
driver.findElement(By.id("documentSelect_enter")).sendKeys("Documents 1.xml");
in this field:
<input id="documentSelect_enter" type="text" ...
5
votes
4answers
4k views
Which locator do you use with Selenium CSS or XPath?
I have heard that, when using Selenium, the CSS Locator has better performance than the XPath Locator. Which Locator do you use in your tests? Have you seen a great performance improvement when using ...