Buu85 Posted March 4, 2019 Share Posted March 4, 2019 #include <IE.au3> Local $oUser, $oPass, $oSubmit Local $sUser = "testuser" Local $sPass = "password" Local $url = "https:// ?" Local $oIE = _IECreate($url,1) _IELoadWait($oIE) $oInputs = _IETagNameGetCollection($oIE, "input") for $oinput in $oInputs if $oinput.type = "text" And $oinput.name = "userid" And $oinput.size = "8" Then $oUser = $oInput if $oinput.type = "password" And $oinput.name = "password" And $oinput.size = "8" Then $oPass = $oInput if $oinput.type = "submit" And $oinput.value = " Sign in " Then $oSubmit = $oinput if IsObj($oUser) And IsObj($oPass) And isobj($oSubmit) then ExitLoop Next $oUser.value = $sUser $oPass.value = $sPass _IEAction($oSubmit, "click") _IELoadWait Do help me with the above script, its not working for. Note: URL is removed while sharing the script, do help me out with the script only --------- (what's wrong with the script) Link to comment Share on other sites More sharing options...
Nine Posted March 4, 2019 Share Posted March 4, 2019 @Buu85 It will be very hard to help you without the DOM of the 3 objects. Just inspect the 3 objects, capture screen, and post it here. Buu85 1 “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Screen Scraping Multi-Threading Made Easy Link to comment Share on other sites More sharing options...
Danp2 Posted March 4, 2019 Share Posted March 4, 2019 "Not working" isn't sufficient for us to help you solve the issue. You should post the results from the Scite output panel so that we can see where it is failing. P.S. Based on your code, I would suggest taking a look at _IEGetObjByName, _IEFormElementSetValue, and _IEFormSubmit. Buu85 1 Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
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