Okay, that's no good. Is your web page available online somewhere so that I might give it a go and try to do what you are trying to do? As far as the image method goes, if there isn't an image that represents your menu, then don't use the image, for example if your menu is a link, use link instead of image. Watir can only work with objects that are actually on your webpage - if no images, then Watir cannot see an image, which is what the message indicates. Watir can however do it! Because Watir uses the same technique as every other automated test tool for Internet Explorer, if Watir can't do it, then no other tool can, but I guarantee that Watir can do it.
So the reason why you see "Client SearchReportsBank TransferProceduresChange PasswordAdvantageCheck RequestsBonus AwardsPredictive Dialer" INSTEAD of Client Search Reports Bank.. etc. with spaces in between each word is likely because in your webpage there aren't spaces after each word. If in your webpage you were to place a space after each word, probably in the form then you would also see spaces between each word when you do $ie.text. Let's try something different. Open up a command line window (if you don't already know how, click on the Start button, click on Run, enter cmd, then click OK). From there type irb and press Enter. This brings you into the Ruby console. Now type the following, pressing enter after each line - case matters remember, and you should never see the word nil unless I tell you: require 'watir' include Watir $ie=IE.start([i]type the URL to your webpage here in quotation marks[/i]) $ie.show_links This will list all of the attributes of all of the links on your website. Try it out and let me know what you get. To exit the Ruby console type exit and press Enter. Nathan --------------------------------------------------------------------- Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=5259&messageID=14686#14686 _______________________________________________ Wtr-general mailing list [email protected] http://rubyforge.org/mailman/listinfo/wtr-general
