Hello all,
I've been recently assigned the task of writing the initial test cases
for our company's web app. I have trialled Selenium and after banging
my head on the desk with some of its quirks I decided to give Watir a
go. So far so good, and having irb natively on the Mac helps a lot.
But (and there's always a 'but'), I'm having trouble accessing a
nested frame's content. Below is the output of irb when I'm trying
interactively (crm is the object to which I attached the Firefox
window):
>> crm.show_frames
There are 1 frames
frame: name: mainFrame
index: 1
=> 0..0
>> crm.frame(:name, "mainFrame").text
=> ""
>> crm.frame(:name, "mainFrame").show_frames
=> ""
>> crm.frame(:name, "mainFrame").html
=> "<html><head>\n\n\n<title>Settings - ActionStep Workflow</title>
\n<meta http-equiv=\"Content-Type\" content=\"text/html;
charset=UTF-8\">\n</head><frameset rows=\"27px,*\" cols=\"*\"
frameborder=\"no\" border=\"0\" framespacing=\"0\">\n<frame src=\"/mym/
crm/admin_navbar.php?application=crm&select_page=\" name=
\"leftFrame\" noresize=\"noresize\">\n<frame src=\"/mym/asfw/crm/
medium/mediumList.php?application=crm\" id=\"CrmAdminFrame\" name=
\"CrmAdminFrame\" noresize=\"noresize\">\n</frameset>
\n<noframes><body>Sorry, this page requires support for Frames.\n</
body></noframes>\n</html>"
As you can probably see, Watir (or FireWatir, I'm not sure) can't see
the frames inside the html of frame(:name, "mainFrame"). This frame is
contained within an <iframe> on the main page.
Any tips to why this happen or workarounds or even where to read more
about this would be greatly appreciated.
Regards,
Rafael Fonseca
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Watir General" group.
To post to this group, send email to [email protected]
Before posting, please read the following guidelines:
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/watir-general
-~----------~----~----~----~------~----~------~--~---