Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.ruby
list links in a DIV using watir module
sean_n
10/8/2007 8:13:00 AM
Using the watir module, is there a way to show all the hyperlinks in a
DIV?
Can you please provide some code snippets?
2 Answers
7stud 7stud
10/8/2007 9:27:00 AM
0
sean_n wrote:
> Using the watir module, is there a way to show all the hyperlinks in a
> DIV?
> Can you please provide some code snippets?
How about:
div_links = ie.div(:id, "some_id").links
div_links.each { |l| puts l.to_s }
--
Posted via
http://www.ruby-...
.
Inder Hooda
5/5/2008 6:54:00 PM
0
7stud -- wrote:
> sean_n wrote:
>> Using the watir module, is there a way to show all the hyperlinks in a
>> DIV?
>> Can you please provide some code snippets?
>
>
> How about:
>
> div_links = ie.div(:id, "some_id").links
> div_links.each { |l| puts l.to_s }
This is really perfect to identify Divs.Works for me..
But how to click on each div (identified by DIV id )one at a time ?
My requirement is to click on each link & identify the output , compare
results & then move on to next div .... n so on ..
Please help.
--
Posted via
http://www.ruby-...
.
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
list links in a DIV using watir module
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password