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]