You can always find the input and then parse out the information for yourself.

ie.input( :name, "add" ).html.scan( /main.location='(.*)';top.side/ )

should return just that portion of things you are interested in.  Remember that if your html is on multiple lines be sure to add a /m suffix to the regex for #scan.

j.

On 11/18/05, Torres, Ben (HQP) <[EMAIL PROTECTED]> wrote:
Is there anyway I can get the url specified in onclick?
(http://fo-vap-rhe-us...)

Here's a snip from the source code:

<INPUT name="add" TYPE="button" value="Add to EDC"
style="font-family:Helvetica;font-size:xx-small"
>leId=10023852&foUserId=CYENBOR&lob=AT';top.side.document.actionForm.add.
disabled=true;">

What I would want to do is take this url and open it in a new browser
window.

Thanks in advance,
ben


_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general



--
"Remember. Understand. Believe. Yield! -> http://ruby-lang.org"

Jeff Wood
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to