Hi 

[<a href="/ym/Logout?YY=77101&YY=77101" target="_top">Sign Out</a>,

Here the "," seems to be causing the problem.  So in your script you can either 
use the "," in your script or the regular expressions
Then the script would look like 
ie=IE.attach(:title, /.*Yahoo.*/)
ie.link(:text, /.*Sign Out.*/).click
ie.close()
The above script worked for me.



smanish wrote:

>Hi,
>I have following simple script....but at the end of executiong..
>I get exception as bellow
>
>W, [16-Nov-2005 12:40:52#7832]  WARN -- : frame error in waitdocument
>    OLE error code:80070005 in <Unknown>
>      Access is denied.
>    HRESULT error code:0x80020009
>      Exception occurred.
>c:/program files/ruby/lib/ruby/site_ruby/1.8/watir.rb:1405:in 
>`method_missing'
>c:/program files/ruby/lib/ruby/site_ruby/1.8/watir.rb:1405:in `wait'
>c:/program files/ruby/lib/ruby/site_ruby/1.8/watir.rb:1404:in `upto'
>c:/program files/ruby/lib/ruby/site_ruby/1.8/watir.rb:1404:in `wait'
>c:/program files/ruby/lib/ruby/site_ruby/1.8/watir.rb:2014:in `click'
>yahoomail.rb:10
>c:/program files/ruby/lib/ruby/site_ruby/1.8/watir.rb:1928:in 
>`assert_exists': Unable to locate object, using text and Sign out 
>(Watir::Exception::UnknownObjectException)
>            from c:/program 
>files/ruby/lib/ruby/site_ruby/1.8/watir.rb:2009:in `click'
>            from yahoomail.rb:13
>  
>
>>Exit code: 1
>>    
>>
>
>-------------------------------------
>require 'watir'   # the watir controller
># open the IE browser
>$ie = Watir::IE.new
>$ie.set_fast_speed()
>test_site="http://mail.yahoo.com/";
>$ie.goto(test_site)
>$ie.text_field(:name, "login").set("abc")   
>$ie.text_field(:id, "passwd").set("xyz")
>$ie.button(:value, "Sign In").click
>$ie.show_all_objects
>$ie.link(:text, "Sign out").click
>$ie.close
>
>Any ideas??
>Thanks,
>Manish
>
>_______________________________________________
>Wtr-general mailing list
>[email protected]
>http://rubyforge.org/mailman/listinfo/wtr-general
>  
>


-- 
Sathya Shankar M G
Software Testing Engineer
Qantom Software
http://www.qantom.com
Ph : 26799269 Xtn. 123
sip : [EMAIL PROTECTED] 


_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to