xpath - Automating a javascript button click -


so have button code this:

<div style="text-indent: 0pt; visibility: inherit;" id="button5061">     <a title="continue" href="javascript:if(%20button5061.hasonup%20)%20button5061.onup()" name="button5061anc">         <img width="82" height="25" border="0" style="cursor: pointer;" alt="continue" src="images/continueoff.gif" name="button5061img">     </a> </div> 

and need click javascript. right using firefox extension chickenfoot allows me script site javascript interpreter custom commands.

http://groups.csail.mit.edu/uid/chickenfoot/api.html

i have tried selecting xpath (//div/a[@title='continue']/..) finds it, when click() nothing happens. here of things have tried:

click(find(new xpath("//img[@alt='continue']/.."))) click(find(new xpath("//img[@alt='continue']/../.."))) click("continue") click("continue") click("images/continueoff.gif") click("continueoff.gif") click(find("continue")) click(find("continue").element) click(find("images/continueoff.gif")) 

i know rather specific quesiton ideas on try appreciated.

if you're trying simulate user clicking on it:

you can simulate click this: document.getelementbyid('thesubmitbutton').click();

here's example ya: http://jsfiddle.net/gaswz/1/

if that's not you're trying do, explain bit more?


Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -