0

Selenium WebDriver

asked 2014-03-30 07:33:03 +0800

Naif92 gravatar image Naif92
1

I am using Selenium IDE and Selenium web driver testng in eclipse .. my testing is against ZK application ..

the test case works fine on Selenium IDE ..

but when I run it in eclipse with selenium web driver (testng) I got an error ..

the error come when I click in button then grid table comes .. then the webdriver can not find the element ..

selenium.open("xxx");
selenium.click("//li[2]/div/div/div/span");
Thread.sleep(3000);
selenium.doubleClick("//div[2]/div[2]");
Thread.sleep(3000);

the error was in this code ..

//div[2]/div[2]

the element not found .. its works fine with selenium IDE .. and I check with firepath .. the Xpath is correct !

delete flag offensive retag edit
Be the first one to reply this discussion!
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow
1 follower

RSS

Stats

Asked: 2014-03-30 07:33:03 +0800

Seen: 14 times

Last updated: Mar 30 '14

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More