0
我是Selenium的新手,刚刚在使用IDE。我有一个网站在我的机器上运行,它有一个IFrame和一些弹出窗口。以下代码在中速模式或低速模式下运行良好,但在快速模式下运行时会出错(请参见下面的第15行)。尽管我试图保持等待事件的同步。运行相同的代码时,Selenium IDE给出了不同的结果
另请注意,无论运行速度缓慢还是速度较慢,第9行都会执行相同的代码。
01 open /default.aspx
02 type id=loginContent_txtPassword xxxx
03 clickAndWait id=loginContent_btnSet
04 windowFocus
05 click //div[@id='lBar_leftItem_4']/a
06 waitForFrameToLoad aframe 30000
07 selectFrame aframe
08 click css=img[title="Properties"]
09 waitForPopUp doc 30000
10 selectWindow name=doc
11 close
12 selectWindow null
13 selectFrame aframe
14 click css=img[title="Properties"]
15 waitForPopUp doc 30000 ***[error] can't access dead object**
16 selectWindow name=doc
17 verifyText id=popupContent_lblOwner XYZ*
18 close