Watir can work with javascript-driven pages. I suggest you use Watir with a
more normal page first, to learn the tool, or else get help from someone
with Watir experience.
Bret
At 01:42 PM 9/8/2005, Danny Yuan wrote:
Sorry, I did not see a similar message and reply in the mail archive. I'll
see if moving to different frame will help. By the way, is there a search
function for the mail achive? As a side issue, would it be great if we can
have Watir look for a page widget across all frames because from an web
user's perspective, a page is a page, the frame is transparent to the user
most of the time. Thanks.
Danny Yuan wrote:
Hi,
Can anyone please let me know if we are able to use Watir to test
JavaScript-drive web pages? By JavaScript-driven, I mean that most of the
links/buttons/tree views/forms/drop-down menus are generated by
JavaScript libraries. For example, WebSphere Commerce's administration
consoles are all like that. When I issued ie.showAllObjects, all that was
returned as something as follows:
irb(main):006:0> ie.showAllObjects
-----------Objects in page -------------
text/css id=
text/javascript id=
src=/wcs/javascript/tools/common/Util.js
text/javascript id=
src=/wcs/javascript/tools/common/URLParser
.js
text/javascript id= src=
text/javascript id=
src=/wcs/javascript/tools/common/NumberFor
mat.js
text/javascript id= src=
HTML Document name=mccbanner id=
src=ToolsUIBanner
HTML Document name=mccmenu id= src=ToolsUIMenu
HTML Document name=mccmain id= src=ToolsUIMain
However, the page does show all kinds of links, drop-down menus, or
forms. I know it would be hard to handle such situation, but is it at
least possible to test such web pages using Watir, say click a link or
pull down a drop-down menu? Thank you very much!
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general
_____________________
Bret Pettichord
www.pettichord.com
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general