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

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -