Hi Paul,
Its giving error for ie.html.scan(/src\s*=\s*'(.*)?') here. Please correct it.
 
Thanks,
 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Paul Rogers
Sent: Saturday, November 04, 2006 9:22 PM
To: [email protected]
Subject: Re: [Wtr-general] Is there any way to get all the scr's of images?

probably easiest to use a reg exp for this
 
youd have to create the reg exp with care, as there may be white space and different types of quotes, but this might do it
 
ie.html.scan(/src\s*=\s*'(.*)?')
 
that says, find src followed by either space or no space followed by equals followed by a single quote capture the text in the quote
 
If you get it to ork correctly, please post it, as many people may find this useful
 
Paul
----- Original Message -----
From: sikander
Sent: Friday, November 03, 2006 10:59 PM
Subject: [Wtr-general] Is there any way to get all the scr's of images?

Hi All!
 
Is there any way to get all buttons, text boxes, images etc., of a page to display?
For Example i want to see all id's or :src's of images of a web page.
In that case i may write similar to following code to display all the images of the current page one by one
check_Images=$ie.image(:src, /*.jpg/)
pust check_Images.
Please help me in this regard.
 
Regards,
Sikander
 


_______________________________________________
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

Reply via email to