CaptainBeardsEyesBeard Posted April 30, 2020 Posted April 30, 2020 My script seems to pause at this bit where it opens a "Browse" button in IE If I close the window it then actions the send command Quite confused! ;/****************************Financial Information Screen************************************/ _IELoadWait($oIE) Sleep(3000) $PAgeWrapper = _IEGetObjById($oIE, "page-wrapper") Check_A_Field_Contains_In_InternetExplorer($PAgeWrapper, "Financial Information", "Ensure Financial Information is displayed on screen ") Check_A_Field_Contains_In_InternetExplorer($PAgeWrapper, "The firm's 'standard Terms & Conditions' should be used whenever possible. ", "Ensure Terms and Conditions is displayed on screen ") Check_A_Field_Contains_In_InternetExplorer($PAgeWrapper, "Before confirming 'Non-Standard Terms & Conditions' to a client, they are to be agreed with the Practice Group Head who should refer issues to Practice Governance & Risk where appropriate.", "Ensure confirming non standard terms and conditions is displayed on screen ") $Document = "testdocument.docx" $ClientContractID = _IEGetObjById($oIE, "Client_Contract") ;Upload Contract document $ClientContractID = _IEGetObjById($oIE, "Client_Contract") _IEAction($ClientContractID, "click") If @error Then ConsoleWrite("Can't click Contract Browse button on Financial information screen" & @CRLF) Else WriteToConsoleAndLog("No error clicking Contract Browse button for Client_Contract ID") EndIf ;Send contact and press enter MsgBox(48, "Info ", "Sending $Document variable", 4) Sleep(5000) Send($Document) Sleep(3000) Send("{Enter}") I did try doing a WinActivate of the Window then a ControlSend to the file location field however that wasn't working so I switched to a Send command My SCITE just stays on this. If I close the Browse (file explorer window) it will action the msgbox and send command Test 9 Test Passed: Correct header exists Starting for loop for 2nd next button on Due Digilgence Assesement Screen Found Button: Clicking --> IE.au3 T3.0-2 Warning from function internal function __IEIsObjType, Cannot register internal error handler, cannot trap COM errors (Use _IEErrorHandlerRegister() to register a user error handler) --> IE.au3 T3.0-2 Warning from function internal function __IEIsObjType, Cannot register internal error handler, cannot trap COM errors (Use _IEErrorHandlerRegister() to register a user error handler) --> IE.au3 T3.0-2 Warning from function internal function __IEIsObjType, Cannot register internal error handler, cannot trap COM errors (Use _IEErrorHandlerRegister() to register a user error handler) --> IE.au3 T3.0-2 Warning from function internal function __IEIsObjType, Cannot register internal error handler, cannot trap COM errors (Use _IEErrorHandlerRegister() to register a user error handler) --> IE.au3 T3.0-2 Warning from function internal function __IEIsObjType, Cannot register internal error handler, cannot trap COM errors (Use _IEErrorHandlerRegister() to register a user error handler) --> IE.au3 T3.0-2 Warning from function _IELoadWait, Cannot register internal error handler, cannot trap COM errors (Use _IEErrorHandlerRegister() to register a user error handler) --> IE.au3 T3.0-2 Warning from function internal function __IEIsObjType, Cannot register internal error handler, cannot trap COM errors (Use _IEErrorHandlerRegister() to register a user error handler) --> IE.au3 T3.0-2 Warning from function internal function __IEIsObjType, Cannot register internal error handler, cannot trap COM errors (Use _IEErrorHandlerRegister() to register a user error handler)
Danp2 Posted April 30, 2020 Posted April 30, 2020 This has been covered lots of times on the forum. Here's one example -- Latest Webdriver UDF Release Webdriver Wiki FAQs
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now