<div><br></div>Looking at the rdocs, <a href="http://wtr.rubyforge.org/rdoc/1.6.5/">http://wtr.rubyforge.org/rdoc/1.6.5/</a>, have you tried<div><br></div><div>browser.frame("main").html</div><div><br></div><div>
?<br><br><div class="gmail_quote">On Tue, Apr 20, 2010 at 10:51 AM, Dan Martin <span dir="ltr"><<a href="mailto:ummar143@shaw.ca">ummar143@shaw.ca</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
I am learning to navigate and scrape. I have had more success with<br>
Firewatir than Ruby mechanize, but both are poorly documented.<br>
<br>
Current problem: logging into a site webpage, Firwatir can see the<br>
frames, but cannot access them.<br>
<br>
>> browser.show_frames<br>
There are 3 frames<br>
frame: name: topbar<br>
index: 1<br>
frame: name: langFrame<br>
index: 2<br>
frame: name: main<br>
index: 3<br>
=> 0..2<br>
<br>
>> browser.frame(:index, 1)<br>
=> #<FireWatir::Frame:0x1a9260c located=false how=:index what=1><br>
<br>
>> browser.frame("main")<br>
=> #<FireWatir::Frame:0x1a90dd4 located=false how=:name what="main"><br>
<br>
Firefox shows the webpage source [I show only the top levels]<br>
structure as:<br>
<br>
<html><br>
<br>
<head><br>
<meta http-equiv="content-type" content="text/html;charset=iso-8859-1"><br>
<title>TITLE</title><br>
<link rel="stylesheet" href="all.css"><br>
<br>
<script language="JavaScript" src="WEBPAGE"></script><br>
<script language="JavaScript">FUNCTIONS</script><br>
</head><br>
<br>
<frameset rows="63,0,*" border="0" id="frameset_ID" framespacing="0"<br>
frameborder="no" onload="loadHomepage(1);" onunload="forceLogout();"><br>
<frame src="/TDM/header.htm" name="topbar" scrolling="no"<br>
noresize>STUFF IN HERE</frame><br>
<br>
<frame name="langFrame" src="lang.html">STUFF IN HERE</frame><br>
<frame src="" id="main_ID" name="main" noresize>STUFF IN HERE THAT I<br>
WANT</frame><br>
</frameset><br>
<br>
<noframes><br>
STUFF IN HERE<br>
</noframes><br>
<br>
</html><br>
<br>
<br>
I cannot access any forms etc included in the frame unless I can<br>
name / access the frame.<br>
Any ideas?<br>
<br>
Dan Martin<br>
GP Hospital Practitioner<br>
Computer Scientist<br>
<a href="mailto:ummar143@shaw.ca">ummar143@shaw.ca</a><br>
(204) 831-1746<br>
answering machine always on<br>
<br>
_______________________________________________<br>
Roundtable mailing list<br>
<a href="mailto:Roundtable@muug.mb.ca">Roundtable@muug.mb.ca</a><br>
<a href="http://www.muug.mb.ca/mailman/listinfo/roundtable" target="_blank">http://www.muug.mb.ca/mailman/listinfo/roundtable</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Sean Walberg <<a href="mailto:sean@ertw.com">sean@ertw.com</a>> <a href="http://ertw.com/">http://ertw.com/</a><br>
</div>