The best place to *find* answers to programming/development questions, imo, however it's the *worst* place to *ask* questions (if your first question/comment doesn't get any up-rating/response, then u can't ask anymore questions--ridiculously unrealistic), but again, a great reference for *finding* answers.

My Music (Nickleus)

20130314

sahi - how to get a link element's url and store it in a variable

i have a link on a webpage like this:
example.com

here's how i get the href/url for the link and store it in a variable in sahi:
var $link_url;
_set($link_url, _link("example.com").href);


now $link_url has the following value:
http://example.com

thanks to this sahi forum post for pointing me in the right direction:
How do I get a list of links in the page

No comments:

Post a Comment