Actually, there's a danger in using

    /download.html/

in that it will match not only

    download.html

but also

    downloadxhtml

(Now that's not likely to be an issue in this case, but you can see how it 
might be in other cases.  If you were looking for a link like

    /foo.asp/

would match a link that contained

    foogasp.html

if it appeared on the page before

    foo.asp

To be specific (and mostly to develop good regular expression hygeine habits), 
you would escape the period, such that your regular expression would be

    /download\.html/


I AM a pedant, but I've been bitten by that before too, so I hope this 
helps...

---Michael B.

> On 1/25/06, Chris Schmechel <[EMAIL PROTECTED]> wrote:
>>
>> Thanks for the reply, it got me thinking.  I found the problem:
>>
>>  ie.link(:url, "download.html").click
>>
>> needs to become:
>>
>>  ie.link(:url, /download.html/).click
>>
>> and it works!  Now I'm running into another problem.  Due to my
>> browser security settings -- I'm getting the following ActiveX control
>> upon download:
>>
>>  "To help protect your security, Internet Explorer blocked this site from
>>  downloading files to your computer.  Click here for options..."
>>
>> I'd like to be able to detect this and then issue the click on the download
>> button (ie. start it going ).
>>
>> Afterwards, you get another dialog box: File Download - Security Warning.
>> With the options to Run, Save, or Cancel the file download.  How can I
>> handle
>> this as well?
>>
>> Thanks again!
>>
>> Chris Schmechel
>>
>>
>> _______________________________________________
>> Wtr-general mailing list
>> [email protected]
>> http://rubyforge.org/mailman/listinfo/wtr-general
>>
>>
> 
> _______________________________________________
> Wtr-general mailing list
> [email protected]
> http://rubyforge.org/mailman/listinfo/wtr-general

DevelopSense:  Software Testing in Plain English
http://www.developsense.com
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to