Not sure if you're just practicing against Gmail, which I think is actually against the terms of service, but you're really not going to want to try and automate sending email through the GUI. You'd be much better off using a gem such as the one below:
https://github.com/gmailgem/gmail On Monday, August 17, 2015 at 8:40:43 AM UTC-4, Aya Akl wrote: > > Hi there, > > I am trying to automate attaching files when composing an email using > gmail. > I tried to use "$browser.file_field" but it didn't work, the file_field > cannot be located. > > I am using mac OSX > > any help please will be much appreciated. > > Regards, > Aya > -- -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com --- You received this message because you are subscribed to the Google Groups "Watir General" group. To unsubscribe from this group and stop receiving emails from it, send an email to watir-general+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.