Sign in to follow this  
Followers 0
Wizzel

How could I get IE to click on this button?

4 posts in this topic

#1 ·  Posted (edited)

Title says everything. Here is the source of the button.

<input type="submit" name="buysell" value="Buy Now" />

Here is the image of the button. I am using IE.au3

Edited by Wizzel

Share this post


Link to post
Share on other sites



Title says everything. Here is the source of the button.

<input type="submit" name="buysell" value="Buy Now" />

Here is the image of the button. I am using IE.au3

Since the object has a name value (not all do), look at the example in the help file for _IEFormElementGetObjByName().

:)


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

Share this post


Link to post
Share on other sites

_IEFormElementGetObjByName($oIE, "buysell")

This doesn't work.

Neither does:

_IEFormElementGetObjByName($oIE, "Buy Now")

Share this post


Link to post
Share on other sites

_IEFormElementGetObjByName($oIE, "buysell")

This doesn't work.

Neither does:

_IEFormElementGetObjByName($oIE, "Buy Now")

There is a hierarchy to the DOM. For example, System32 doesn't exist at C:\. You have to dig a little deeper.

In this case, you may have to get the object reference to the Form first. Then use something more like _IEFormElementGetObjByName($oForm, "buysell"). Try out some of the examples in the help file, like under _IEFormGetCollection().

:)


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

Share this post


Link to post
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
Sign in to follow this  
Followers 0