css - How to use seleniumRC in Junit framework on dynamically changing elementids -


i trying automate work flow process .in this,i need click on link positioned in of rows of table.thing links available in rows have same element id , in source code have java script " ("element id" @ onclick..java script****:).....so here after clicking connecting 1 form form inputting value in java script code , 1 value in java script dynamically changes.how click on link now?is there solution using xpath or so...to click on link based on css classid or so...please me out..main problem is...all links in rows have same element id , dynamically changing java script . trying use selenium.focus() , selenium.clickandwait().but these helpless.as not able identify link id only.

the best way xpath.

something //*[@onclick='javascript'] work can make tests extremely flaky because if inline javascript changes or if removed in preference of addeventlistener element.

something //*[@class='cssclass'] work. think need speak developers , ask them make more testable.


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -