CaptainBeardsEyesBeard Posted May 29, 2018 Posted May 29, 2018 Hi I have a strange form I'm trying to access the Amount for I tried accessing it via this code with no success. Local $hWnd = WinWait("Cost Entry", "", 10) ;obtain the text in that window which should be "Successfully Saved records for RSA1" Local $RecordSaveSuccess = ControlGetText($hWnd, "", "Static2") Sleep(1000) if StringInStr($RecordSaveSuccess, $Rate) then MsgBox($MB_SYSTEMMODAL, "Test" & $TestCount & " Result", "Test Passed, Cost entry Saved", 4) FileWrite($hFilehandle, @CRLF & "Test" & $TestCount & " Create a new cost using timekeeper" & $Timekeeper & " Ensure Timekeeper saves " & $RecordSaveSuccess & " Test Passed") Else MsgBox($MB_SYSTEMMODAL, "Test" + $TestCount & " Result", "Test Failed", 4) FileWrite($hFilehandle, @CRLF & "Test" & $TestCount & " Create a new timekeeper using " & $Initials & " Ensure timekeeper saves Test Failed" & $RecordSaveSuccess) Exit EndIf
Danp2 Posted May 29, 2018 Posted May 29, 2018 Why did you use "Static2"? Based on your screenshot, I would have tried "[CLASS:SPR32AU30_Spreadsheet; INSTANCE:2]" 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