[ http://jira.openqa.org/browse/WTR-167?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=20470#action_20470 ]
shanth commented on WTR-167: ---------------------------- I am using 1.8.6 version and the issue still existing.Any help much appreciated. > OLE error when creating new IE browser as Scheduled Task > -------------------------------------------------------- > > Key: WTR-167 > URL: http://jira.openqa.org/browse/WTR-167 > Project: Watir > Issue Type: Bug > Affects Versions: 1.5.0/1.5.1 > Environment: windows server 2003 r2, ruby 1.8.5, watir-1.5.1.1192, > win32-process 0.5.2, windows-pr 0.6.6 > Reporter: Peter Paul Bakker > Priority: Major > Fix For: 1.5.2 > > > We use watir scripts to check the health of web sites at regular intervals. > The scripts run unattended using scheduled tasks in windows. > When running a watir script when logged in, the scripts work fine. > When running the same script unattended as a scheduled task, it fails. > Only when the user that the scheduled task "runs as" is logged on while the > scheduled task runs, it works fine. > So maybe it fails when there is no desktop available. > The user that the scheduled task "runs as" has admin rights. > The error is: > Windows > OLE error code:80040154 in <Unknown> > <No Description> > HRESULT error code:0x80020009 > Exception occurred. > The stacktrace for "IE.start_process" is: > C:/ruby/ruby_bin/lib/ruby/gems/1.8/gems/watir-1.5.1.1192/./watir.rb:1588:in > `method_missing' > C:/ruby/ruby_bin/lib/ruby/gems/1.8/gems/watir-1.5.1.1192/./watir.rb:1588:in > `each' > C:/ruby/ruby_bin/lib/ruby/gems/1.8/gems/watir-1.5.1.1192/./watir/ie-process.rb:21:in > `window' > C:/ruby/ruby_bin/lib/ruby/gems/1.8/gems/watir-1.5.1.1192/./watir.rb:1490:in > `_new_process_init' > C:/ruby/ruby_bin/lib/ruby/gems/1.8/gems/watir-1.5.1.1192/./watir.rb:1484:in > `new_process' > C:/ruby/ruby_bin/lib/ruby/gems/1.8/gems/watir-1.5.1.1192/./watir.rb:1499:in > `start_process' > watir.rb:1588 is the second line in: > shell = WIN32OLE.new('Shell.Application') > shell.Windows.each do |window| > The error and stacktrace for ie.new is: > failed to create WIN32OLE object from `InternetExplorer.Application' > HRESULT error code:0x80004005 > Unspecified error > C:/ruby/ruby_bin/lib/ruby/gems/1.8/gems/watir-1.5.1.1192/./watir.rb:1534:in > `initialize' > C:/ruby/ruby_bin/lib/ruby/gems/1.8/gems/watir-1.5.1.1192/./watir.rb:1534:in > `new' > C:/ruby/ruby_bin/lib/ruby/gems/1.8/gems/watir-1.5.1.1192/./watir.rb:1534:in > `create_browser_window' > C:/ruby/ruby_bin/lib/ruby/gems/1.8/gems/watir-1.5.1.1192/./watir.rb:1462:in > `_new_window_init' > C:/ruby/ruby_bin/lib/ruby/gems/1.8/gems/watir-1.5.1.1192/./watir.rb:1458:in > `initialize' > watir.rb:1534 is the second line in: > def create_browser_window > @ie = WIN32OLE.new('InternetExplorer.Application') > In watir 1.4.1 the "IE.new" method worked fine in an unattended scheduled > task. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.openqa.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira _______________________________________________ Wtr-development mailing list Wtr-development@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-development