On 14/03/06, Tanushree Bhoi <[EMAIL PROTECTED]> wrote:
Hi,
I am newly joined to this group.I am exploring about watir and ruby.
I tried running the examples given with the Watir example folder but some scripts(google_maps.rb,mouse_over.rb,yahoocheck_test.rb) are
giving errors.Please help.

 
Hello Tanushree, I found problems with those examples too.  I think they are fixed for the next release.  In the meanwhile, I would recommend that you use these script errors as an opportunity to practice debugging your first Watir scripts.  Here's some help to get you started.

(1) Download SpySmith at http://www.qualityforge.com/spysmith/index.html
- This page has all the instructions you need to use the tool.
- Follow the "Download" link at the top of the page to download and install it.

(2) google_maps.rb:
- I found that the text input field has been renamed on the Google page since the script was first created.
- Use SpySmith to find out the identifiers for the text input field.  Change the text input box reference in the script to match. (There are a few ways you can do this.)

(3) mouse_over.rb:
- The link names have changed on some of the pages.  (The year is different.)
- Use SpySmith to identify the links that you think the script is trying to click.  Update the link references in the script to match.

(4) yahoocheck_test.rb:
- This Yahoo! page is just completely gone.  I can't think of any easy way to update this example.
- I just left this example alone but I used it for reference when I actually had to check some checkboxes in one of my own scripts.

Hope this helps.  Good luck!

Paul.

_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to