I Ruby I Watir test error

require 'watir' # the watir controller
# open the IE browser
$ie = Watir::IE.new
# print some comments
puts "## Beginning of test: ganji.com-vip"
puts " "

puts "Log out"
$ie.goto(url_login_out)
puts "Open the landing page"
$ie.goto(url_login)
puts "Enter the user name"
$ie.text_field(:name, "email").set(login_name)
puts "Enter the password"
$ie.text_field(:name, "password").set(login_pw)
puts "Click the login button"
$ie.button(:name, "Submit1").click
puts "Open the member center"
$ie.goto(url_usercenter)
if $ie.contains_text("Classification of information I") then
puts "Successful login member center"
else
puts "Login member center failure"
end


Error, as follows
>ruby usercenter5.rb
## Beginning of test: ganji.com-vip

Log out
Open the landing page
Enter the user name
Enter the password
Click the login button
Open the member center
Successful login member center
W, [16-Jul-2007 16:19:56#3340] WARN -- : frame error in waitdocument
OLE error code:80070005 in <Unknown>
Access denied.


HRESULT error code:0x80020009
The accident.
c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1405:in `method_missing'
c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1405:in `wait'
c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1404:in `upto'
c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1404:in `wait'
c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1254:in `goto'
usercenter5.rb:50
>Exit code: 0

Would like to ask: what do you mean? How to solve

Started by Murray at November 15, 2016 - 1:23 PM

The reply to 2008-07-07 16:15:48 was a moderator to delete

Posted by Howar at November 22, 2016 - 1:58 PM

I want to know, are looking for information on this~~~~~

Posted by Bennett at November 27, 2016 - 2:12 PM

Have not encountered such a situation.

Posted by Sunny at December 03, 2016 - 3:11 PM

The page use frames.?
ie.show_frames()Have a look

Posted by Wordsworth at December 15, 2016 - 3:38 PM

If the page is used in the frame. That can be changed

if $ie.frame(:name,"mainFrame").contains_text( "Classification of information I ") then
puts "Successful login member center "
else
puts "Login member center failure "
end

Because in general are left, top, main.

Posted by Camille at December 25, 2016 - 4:15 PM

You have to trust the site your IE settings inside the security in your test site address, the security level is set to low trust site~

Posted by Kent at January 04, 2017 - 4:44 PM