|
I am
getting the following error when the window I have attached to closes and returns
to the main window—actually the main window closes too and the error is
displayed. I can’t
send the web page due to proprietary and confidential information, but what it
does is there is a name picker that pops up in a new window (the one I am
attaching to) and once a name is selected clicking the button closes the window
and transfers the selected name to the main window and is displayed in a select
box. Ruby version 1.8.4_16 Watir revision 934 (current from trunk)
1) Error: test_main(TC_ARM_Start): WIN32OLERuntimeError:
busy
OLE error code:80004005 in <Unknown>
<No Description>
HRESULT error code:0x80020009
Exception occurred.
c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1465:in `method_missing'
c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1465:in `wait'
c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:2253:in `click'
C:/watir_bonus/working/ARM/tc_ARM_Start.rb:34:in `test_main' exit c:/ruby/lib/ruby/1.8/test/unit.rb:285:in
`exit' c:/ruby/lib/ruby/1.8/test/unit.rb:285 C:/watir_bonus/working/ARM/tc_ARM_Start.rb:13 My
watir script:
def gotoPopUpPage()
$ie.goto("http://apwtst200.rl.gov/ARM/main.cfm?screen=0")
end
def test_main
$d = Time.now.strftime("%m/%d/%Y")
gotoPopUpPage()
$ie.selectBox( :name, "Program").select("LMIT")
$ie.selectBox( :name, "myProjectID2").select(/MARK-TEST/i)
$ie.selectBox( :name, "myProjectID2").fireEvent("OnBlur")
$ie.selectBox( :name, "DocumentMethod").select("by Checklist
Number")
$ie.textField( :name, "SearchString").set("TST")
$ie.button("Search").click
#$ie.selectBox( :name, "myProjectID2").select(/MARK-TEST/i)
$ie.radio( :id, '72').set
$ie.button(/Start/i).click
$ie.selectBox( :name, "ProjectVersion").select(/4.4/i)
#$ie.selectBox( :name, "namedisplay").select(/4.4/i)
$ie.button("...").click
sleep 2
nw = IE.attach(:title, "ARM")
nw.text_field( :name, "Filter").set("Cain, Mark")
nw.button(:id, "PersonnelSearch").click
nw.button(:id, "SelectButton").click
$ie.status()
$ie.text_field(:name, "d_date").set("#{d}")
$ie.selectBox( :name, "d_time").select(/15 minutes/i)
$ie.textArea(:name, "").set("Me\nMyself\nI")
End End Anyone
seen this before? I have
used attach before without issue. Thanks, ____________________ |
_______________________________________________ Wtr-general mailing list [email protected] http://rubyforge.org/mailman/listinfo/wtr-general
