sqa Posted March 27, 2017 Share Posted March 27, 2017 (edited) Basically I need to type a text in 2 text boxes and press Save button to proceed further. After pressing Save button the text disappears from those text boxes. Local $oIE = _IEAttach("page") $firstName = "Andy" $lastName = "Gour" $oDiv = _IEGetObjById($oIE, "2c54f866-bf1b-4999-b587-7971d7d8648c") $oFirstName = _IEGetObjById($oDiv, "b91587da-5723-4b0f-8c5d-2c42f80e99ab") $oLastName = _IEGetObjById($oDiv, "f1bee0d0-651a-49aa-887b-4bab3745072f") ;fill up _IEAction($oFirstName, "focus") _IEFormElementSetValue($oFirstName, $firstName) Sleep(500) _IEAction($oLastName, "focus") _IEFormElementSetValue($oLastName, $lastName) The code works perfectly and text is in text boxes, but as soon as I press save button for this page the text disappears and status check for those text-boxes shows they are empty. If I use Selenium webdriver - no problem, Sikuli - no problem as well, only with AutoIt. Thanks Edited March 27, 2017 by sqa added some description Link to comment Share on other sites More sharing options...
JohnOne Posted March 29, 2017 Share Posted March 29, 2017 If you swap _IEFormElementSetValue($oFirstName, $firstName) for Send($firstName) Same with $lastname, what then? AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
Subz Posted March 29, 2017 Share Posted March 29, 2017 Sounds like the page is refreshing when clicking save/submitting, whats the code you use to save/submit? Link to comment Share on other sites More sharing options...
JohnOne Posted March 29, 2017 Share Posted March 29, 2017 I had to assume OP was clicking manually, loads of websites now resist automation so wotrh trying every method of filling the fields. Some of them even need a mouseover or click. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. 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