Skay Posted September 21, 2014 Share Posted September 21, 2014 (edited) <form action = object-transfers.php method = post style = 'display: inline;'> <input type = hidden name = sign_md5 value = a1ad42101b8117200abfc8585f900117> <input type = hidden name = action1 value = buyr> <nobr> <input type = text name = amount value = '0' size = 5> <input type = submit value = 'Order' class = mainbutton> </ nobr> </ form> </ td> </ tr> </ table> How can I make a click on a form? further highlight current meaning to overwrite it .Next click on the button to order. Edited September 21, 2014 by Skay Link to comment Share on other sites More sharing options...
Danp2 Posted September 21, 2014 Share Posted September 21, 2014 I suspect that this still involves game automation. You've already been warned twice about this. Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
Skay Posted September 21, 2014 Author Share Posted September 21, 2014 (edited) Your suspicions, do not carry any sense! Where are you saw the automation for the game? Edited September 21, 2014 by Skay Link to comment Share on other sites More sharing options...
junkew Posted September 21, 2014 Share Posted September 21, 2014 on the information you gave its hard to say what you should usesearch for IE.AU3, CHROME.AU3, FF.AU3or if you need a combination use this'?do=embed' frameborder='0' data-embedContent>> FAQ 31 How to click some elements, FAQ 40 Test automation with AutoIt, Multithreading CLR .NET Powershell CMDLets Link to comment Share on other sites More sharing options...
Skay Posted September 21, 2014 Author Share Posted September 21, 2014 search for IE.AU3. I can not set the correct form $oForm = _IEFormGetObjByName($oIE, "form") $oInputAction1 = _IEFormElementGetObjByName($oIE, "text") _IEAction($oInputAction1, "focus") _IEAction($oInputAction1, "selectall") is not that something Link to comment Share on other sites More sharing options...
jguinch Posted September 21, 2014 Share Posted September 21, 2014 (edited) Try with $oInputAction1 = _IEFormElementGetObjByName($oIE, "amount") Edited September 21, 2014 by jguinch Spoiler Network configuration UDF, _DirGetSizeByExtension, _UninstallList Firefox ConfigurationArray multi-dimensions, Printer Management UDF Link to comment Share on other sites More sharing options...
Danp2 Posted September 21, 2014 Share Posted September 21, 2014 Your suspicions, do not carry any sense! Where are you saw the automation for the game? Ok... then give us the link to the website. Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
Skay Posted September 21, 2014 Author Share Posted September 21, 2014 Danp2 www.drivebike.ru jguinch $oForm = _IEFormGetObjByName($oIE, "form") $oInputAction1 = _IEFormElementGetObjByName($oIE, "amount") _IEAction($oInputAction1, "focus") _IEAction($oInputAction1, "selectall") does not work --> IE.au3 T3.0-1 Warning from function _IEFormGetObjByName, $_IESTATUS_NoMatch --> IE.au3 T3.0-1 Error from function _IEFormElementGetObjByName, $_IESTATUS_InvalidObjectType --> IE.au3 T3.0-1 Error from function _IEAction(focus), $_IESTATUS_InvalidDataType --> IE.au3 T3.0-1 Error from function _IEAction(selectall), $_IESTATUS_InvalidDataType +>19:09:56 AutoIt3.exe ended.rc:0 Link to comment Share on other sites More sharing options...
jguinch Posted September 21, 2014 Share Posted September 21, 2014 www.drivebike.ru does not contain this form in the HTML source. How can web test ?selectall selects all the page content. If you want to select the text, just use $oInput.select() This works :#Include <IE.au3> $oIE = _IECreate(@scriptDir & "\test.html") $oForm = _IEFormGetCollection($oIE, 0) $oInput = _IEFormElementGetObjByName($oForm, "mytext") $oInput.select()with this html source (test.html) <html> <head><title>NO TITLE</title></head> <body> <form name="myform"> <input type="text" name="mytext" value="This is some text"> <input type="submit" value="Submit"> </form> </body> </html> Spoiler Network configuration UDF, _DirGetSizeByExtension, _UninstallList Firefox ConfigurationArray multi-dimensions, Printer Management UDF Link to comment Share on other sites More sharing options...
Skay Posted September 21, 2014 Author Share Posted September 21, 2014 jguinch Thank you very much! now it worked This form is to be in a private office. delivery option 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