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 !
↧