probe Posted June 13, 2014 Posted June 13, 2014 (edited) Hi all I have a Win 7 x86 PC connected to a TV running the script below: expandcollapse popupRun("C:\ScreenDisplay\DataDisplay\Data Loading.exe","C:\ScreenDisplay\DataDisplay\") Sleep(10000) #include <IE.au3> $oIE = _IECreate ("C:\ScreenDisplay\webice_exchange.jnlp") Sleep(5000) WinWait("[CLASS:SunAwtFrame]") RunWait('taskkill /F /IM "iexplore.exe"') Sleep(8000) WinActivate("[CLASS:SunAwtFrame]") send("{TAB 1}") Send("xxxxxxxxxx") Send("{ENTER}") WinWait("IntercontinentalExchange" (ICE) - dedwards3 @ Plexus Cotton Limited") Run("C:\Program Files\KWorld Multimedia\TiVme\TVpanel.exe","C:\Program Files\KWorld Multimedia\TiVme\") WinWait("Dual Device - Digital #1") Sleep(10000) MouseMove(920,318) Sleep(10000) Run("C:\ScreenDisplay\DataDisplay\Data Display.exe","C:\ScreenDisplay\DataDisplay\") WinWait("Form1") WinClose("Loading...") Sleep(10000) WinActivate("Form1") MouseMove(1022, 0) Today, for some reason, the script is failing with the below error in the console: >"C:Program FilesAutoIt3SciTE..autoit3.exe" /ErrorStdOut "C:ScreenDisplayLogin.au3" --> IE.au3 T3.0-1 Error from function _IELoadWait, $_IESTATUS_InvalidObjectType () I have tried adding #RequireAdmin to the script with no success. The PC is up to date with Windows updates, and has the latest version of AutoIT3 (downloaded & installed today. I can't figure out why its not working today when it has functioned perfectly well for the last 3 months. Thanks in advance. Edited June 13, 2014 by probe
Danp2 Posted June 13, 2014 Posted June 13, 2014 Perhaps something changed with the Java security? <shrug> Have you tried loading the Java app directly without using _IECreate? Latest Webdriver UDF Release Webdriver Wiki FAQs
probe Posted June 13, 2014 Author Posted June 13, 2014 The java app loads with no issues, but the script has already stopped by the time the app has loaded to allow logon.
Danp2 Posted June 13, 2014 Posted June 13, 2014 Try eliminating the wait: $oIE = _IECreate ("C:\ScreenDisplay\webice_exchange.jnlp", 0, 1, 0) Latest Webdriver UDF Release Webdriver Wiki FAQs
probe Posted June 13, 2014 Author Posted June 13, 2014 (edited) Thanks Danp2. Not getting any error now, but the script is still not completing. The java app is opening, but that is all. Edit: I changed the first sleep to 8000 to allow the java app more time to validate & it seems to be working. I'll do a full test & post back. Edited June 13, 2014 by probe
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