Webdriver clicks on the wrong element.

27 views
Skip to first unread message

Arya

unread,
Jun 12, 2010, 4:11:20 PM6/12/10
to webdriver
Hello

Here is the test so you can see the problem.


driver.findElement(By.id("username")).sendKeys("USE...@yahoo.com");
driver.findElement(By.id("passwd")).sendKeys("PASSWORD");
driver.findElement(By.id(".save")).click();
Thread.sleep(7777);
driver.findElement(By.id("_test_Inbox")).click();
Thread.sleep(9999);
driver.findElement(By.xpath("//tr[3]/td[6]/
nobr")).click();


This is supposed to click the "third" message, but always clicks on
the first one.

Arya

unread,
Jun 12, 2010, 9:23:47 PM6/12/10
to webdriver
Sorry I forgot to add this line of code at the top

driver.navigate().to("http://mail.yahoo.com");

And can someone tell me if there is a solution to this?


Best Regards!

Simon Stewart

unread,
Jun 16, 2010, 5:58:24 AM6/16/10
to webd...@googlegroups.com
Which browser and OS?

Simon

> --
> You received this message because you are subscribed to the Google Groups "webdriver" group.
> To post to this group, send email to webd...@googlegroups.com.
> To unsubscribe from this group, send email to webdriver+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/webdriver?hl=en.
>
>

Arya

unread,
Jun 17, 2010, 2:51:41 AM6/17/10
to webdriver
Firefox 3.5.9 on Windows 7 64 bit. I tried this on Windows xp 32 bit a
while back with the same result.

Arya

unread,
Jun 24, 2010, 12:54:20 AM6/24/10
to webdriver
Do you know if this will be fixed in the next release?

Regards!
Reply all
Reply to author
Forward
0 new messages