Check that it could be in a frame.
----- Original Message ---- From: cboudreau <carlboudreau...@gmail.com> To: Watir General <watir-general@googlegroups.com> Sent: Thursday, April 9, 2009 11:32:56 AM Subject: [wtr-general] Re: Yahoo mail, creating a new email message. 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 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Watir General" group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~----------~----~----~----~------~----~------~--~---