Click on the pop-up window in A picture, pop up another window B, but not to obt

Click on the pop-up window in A picture, pop up another window B, but not to obtain B window, but is closed manually and then click on the open B window, and you can get to and perform, how is this going?
The following code in the Au3 file:

#include <IE.au3>
#include <WinAPI.au3>
;#include <GUIConstants.au3>

;Use case location pop-up window
$title="Use test case -- Webpage dialog window title "; A
WinActive($title)
$oIE=_IEAttach($title,"embedded")
_IELoadWait($oIE)
$oForm=_IEFormGetObjByName($oIE,"form1")
;Positioning the image object
_IEImgClick($oIE,"Select the object to be measured","alt")
Sleep(5000)
;Run to here is the following code is not executed, someone had no?

;Position cross tested object query window
$title1="The object to be measured, Webpage dialog window title "; B
WinActive($title1)
$oIE1=_IEAttach($title1,"embedded")
_IELoadWait($oIE1)
Local $oBject=_IEGetObjById($oIE1,"searchKeyFuzzy")
_IEAction($oBject,"focus")
_IEFormElementSetValue($oBject,"Statistical test")
sleep(2000)
Local $oButtonSearch=_IEGetObjById($oIE1,"searchbutton")
_IEAction($oButtonSearch,"click")
sleep(6000)
Local $oButtonOk=_IEGetObjById($oIE1,"Button2")
_IEAction($oButtonOk,"click")
sleep(10000)

Started by Hunter at December 14, 2016 - 6:06 PM

Don't feel like Watir

Posted by Edwiin at December 18, 2016 - 6:23 PM