Jump to content

Click on an item form


Skay
 Share

Recommended Posts

<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 by Skay
Link to comment
Share on other sites

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")

:D is not that something

Link to comment
Share on other sites

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

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>
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...