Isoripper 0 Posted January 10, 2012 Report Share Posted January 10, 2012 Hi,I Have a page I navigate to where I need to click the first "to the application" link as this page dont use any class or id whatsoever. Im having a hard time figuring this out:Here is the html:http://pastebin.com/bf5Tep0mCan anybody help me?Thanks! Quote Link to post Share on other sites
Kreatus (Ubot Ninja) 422 Posted January 10, 2012 Report Share Posted January 10, 2012 Just scrape all the urls with the "to the application" anchor text then navigate to it.. Quote Link to post Share on other sites
blumi40 222 Posted January 10, 2012 Report Share Posted January 10, 2012 try this clear list(%urls) navigate("http://pastebin.com/bf5Tep0m", "Wait") add list to list(%urls, $scrape attribute(<outerhtml=w"<span class=\"st0\">\"http://ui.zanox.com/bin/z_in_frm.dll?*\"</span>">, "innertext"), "Delete", "Global") Quote Link to post Share on other sites
Isoripper 0 Posted January 10, 2012 Author Report Share Posted January 10, 2012 Thanks for the replies! I just tried the suggestion Kreatus offered and it works fine. I have also found this regex that helped as well: click($element offset(<a innertext=r"\\b(?:to\\W+(?:\\w+\\W+)\{1,6\}?|to)\\b">, 1), "Left Click", "No") Thanks Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.