Sign in to follow this  
Followers 0
lshankarmca

How to click a web button in already opened IE browser

7 posts in this topic

Hi I am new to AutoIt,

I want to click a button in side a webpage in ie browser. And Ie browser is we are opening manually.

I want to click a button in a page which is already opened.

Regards,

Shankar L

Share this post


Link to post
Share on other sites



Use the function _IEAttach to connect to the IE instance. Then you could use _IEGetObjById or _IEGetObjByName to get the object and _IEAction to click on the button. If it's a link or image you will find corresponding functions in the UDF too.


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

I am very new to autoit. I am unable to get it. First time I am using this application.

Can you please give me one sample example so that i can implement according to my application.

Regards,

Shankar L

Share this post


Link to post
Share on other sites

Click on the _IEAttach link in my previous post and you will find an example.


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

Hi,

Thank you very much for your help. Now I am able to get the Url of the already opened application. Now I want to click on a button which inside a web dialog box. how to handle the web dialog box. I am attaching the screen shot can you please help me out.

post-72080-0-61481000-1336142930_thumb.j

Share this post


Link to post
Share on other sites

Hi

I got the solution to click on the button which is inside the web dialog.

following is code is to click on the submit button:

#include <IE.au3>

Local $oIE = _IEAttach("Submit Job" , "embedded")

Local $oSubmit = _IEGetObjById($oIE, "LAWTBBUTTONundefined")

_IEAction($oSubmit, "click")

Now I want to run my script when my system starts and when ever it found "Submit Job" window open it should run the following code automatically

How to achieve is?

Regards,

Shankar L

1 person likes this

Share this post


Link to post
Share on other sites

#7 ·  Posted (edited)

OK, you need to put forth some effort on your part. He are happy to help but...we are not a fast food place and just serve up code on demand. I suggest for you to read the help file and pay close attention to the section for IE:

http://www.autoitscript.com/autoit3/docs/libfunctions/IE%20Management.htm

edit: I posted this before you posted your code - Still, give the section I provided a link to a read. There are plenty of examples and you can quickly get the idea on how to do what you want to do.

Edited by Bellicus

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