You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 29, 2018. It is now read-only.
What steps will reproduce the problem?
based on the question I posted in google groups http://groups.google.com/group/webdriver/browse_thread/thread/4d77212f4d2ab0a3
for fetching the table columns of each row of a html table, i was using the below code
in a function.
List<WebElement> tableRows = driver.findElements(By.cssSelector("table.grid-table")).get(1).findElements(By.tagName("tr"));
Iterator<WebElement> i = tableRows.iterator();
while (i.hasNext()) {
WebElement tableRow = i.next();
List<WebElement> tableColumns =
tableRow.findElements(By.tagName("td")); //throws the exception when the function is
called for 2nd time in a row.
..
..
}
modifying the same to a fully qualified solves the issue; see below.
List<WebElement> tableRows = driver.findElements(By.cssSelector("table.grid-table")).get(1).findElements(By.tagName("tr"));
Iterator<WebElement> i = tableRows.iterator();
while (i.hasNext()) {
WebElement tableRow = i.next();
List<WebElement> tableColumns = driver.findElements(By.cssSelector("table.grid-table")).get(1).findElements(By.tagName("tr")).iterator().next().findElements(By.tagName("td"));
Selenium version: 2.5.0
OS: Mac 10.6.8
Browser: firefox
Brower version: 5.0
i have tested the code for internet explorer and it worked without issues; but firefox
kept giving me the error till i modified the function as described above. I can vouch
that there is no page reload happening that causes the element to be stale in between.
Reported by feby.george on 2011-08-31 19:10:52
The text was updated successfully, but these errors were encountered:
Does the page contain any frames?
Better yet, if you can provide the page against which the test runs, finding the source
of the problem will be much easier.
It is actual when test is running on remote machine but RDC is closed(user is still
logged in). If I minimize the RDC session without closing it the tests is pass without
errors. Do you have an idea, what's wrong?
Originally reported on Google Code with ID 2383
Reported by
feby.george
on 2011-08-31 19:10:52The text was updated successfully, but these errors were encountered: