Invalid Xpath 2 error for 'Click' selenium function -
i have ran test using selenium ide 2.3.0 , copied junit4/remote control script eclispe classic 4.2.2 , started running code 'junit4'.
i see following error:
invalid xpath 2
the selenium command in eclipse xpath is:
selenium.click("//input[@value='search equipment']");
i tried copying xpath using firebug was:
/html/body/section[2]/section/div/div/div/form/div[2]/div[2]/div/span/input
but same error.
start selenium record , enter thing ur textbox or if button click button click stop.you can correct xpath going target in relevant step in selenium ide.use last xpath.
Comments
Post a Comment