I've seen this topic come up a few times in this forum (i.e. automating yahoo email or gmail), and I'd advise finding another option if possible. They have tons of dynamic content and change frequently, so it's a serious challenge to maintain.
Sorry it's not the answer that you're looking for, but that's my 2 cents. HTH orde On Oct 13, 3:53 pm, iamqa <[email protected]> wrote: > I am trying to automate some testing on yahoo email. I need to click > on the subject or from, so that the email content opens up. I am able > to select the first email by firing onmousedown but unable to go > forward from there. > This is my code: > > @browser.div(:id,"shellcontent").div(:id,"inboxcontainer").div(:id,"msg- > list").div(:class,"list-view ").div(:class,"list-view-items > ").div(:class=>"list-view-item btn-msglist resize- > columns", :index=>1).div(:class,"subj").fire_event('onmousedown') > > I tried firing onkeyup, onkeydown, onmouseup, onmousedown, onclick but > nothing is working. I also tried send_keys("{ENTER}") but was getting > an error as: > > C:/Ruby187/lib/ruby/gems/1.8/gems/watir-1.8.1/lib/watir/element.rb: > 378:in `method_missing': undefined method `send_keys' for #<Watir::Div: > 0x2b58d78 located=false how=:class what="subj"> (NoMethodError) > from email_Agent_MonthlyNonMemberContent_Yahoo.rb:84 > > Thanks -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. [email protected] http://groups.google.com/group/watir-general [email protected]
