Search the web
Sign In
New User? Sign Up
watir-austin · Watir Users - Austin, Texas
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Show off your group to the world. Share a photo of your group with us.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
xpath question   Message List  
Reply | Forward Message #66 of 77 |
I am new to this Watir, and having some difficulty figuring this out.

I thought I would be starting something easy, by logging into Yahoo and then
creating a new email. However I can not get the Xpath line to work.

#Include the FireWatir file.

require 'firewatir'



#include the FireWatir Module.

include FireWatir



ff=Firefox.new

#Open yahoo mail.

ff.goto("http://mail.yahoo.com")



#Put your user name.

ff.text_field(:name,"login").set("username")



#Put your password.

ff.text_field(:name,"passwd").set("password")



#Click Sign In button.

ff.button(:value,"Sign In").click



# Locate the table cell element on the page.

ff.cell(:xpath, "//td[contains(text, 'New')]/").click


#Click Sign Out button.

#ff.link(:text, "Sign Out").click



#Close the browser.

#ff.close





Thu Apr 9, 2009 3:11 pm

wltwebmaster
Offline Offline
Send Email Send Email

Forward
Message #66 of 77 |
Expand Messages Author Sort by Date

I am new to this Watir, and having some difficulty figuring this out. I thought I would be starting something easy, by logging into Yahoo and then creating a...
wltwebmaster
Offline Send Email
Apr 9, 2009
3:11 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help