Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.ruby
FireWatir: get the text from a frame
Mario Ruiz
5/26/2008 1:08:00 PM
I'm trying to get the text shown in a frame using the text porperty in
firewatir that works for a no-frame window but it doesn't work for a
frame....
A full example using watir and firewatir:
require 'firewatir'
require 'watir'
ie=Watir::IE.new()
ff=FireWatir::Firefox.new()
url="
http://www.tlwilliams.net/NOCCC/0005/0005pFrame....
frame="menu"
ff.goto(url)
ie.goto(url)
puts "************************ FIREFOX *************************"
myframe=ff.frame(frame)
puts myframe.text()
puts "************************ INTERNET EXPLORER
*************************"
myframe=ie.frame(frame)
puts myframe.text()
ff.close()
ie.close()
The result is:
Starting Firefox using the executable : C:\Program Files\Mozilla
Firefox\firefox.exe
Waiting for 2 seconds for Firefox to get started.
************************ FIREFOX *************************
************************ INTERNET EXPLORER *************************
Web Publishing - Using Frames in HTMLFrames
__5.0_Introduction_to_Frames
__5.1_Using_Frames
__5.2_Complex_Frames
__5.3_Floating_Frames
__5.4_References
As you can see we don't have any text content from firewatir.
Anybody knows how to get the text.. I mean not the html
Thanks.
--
Posted via
http://www.ruby-...
.
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
FireWatir: get the text from a frame
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