Jump to content

How to click a web button in already opened IE browser


Recommended Posts

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 2021-06-05 - Version 1.5.4.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2021-06-14 - Version 1.6.5.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download
Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
Task Scheduler (2019-12-03 - Version 1.5.1.0) - Download - General Help & Support - Wiki

Tutorials:
ADO - Wiki, WebDriver - Wiki

 

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 2021-06-05 - Version 1.5.4.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2021-06-14 - Version 1.6.5.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download
Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
Task Scheduler (2019-12-03 - Version 1.5.1.0) - Download - General Help & Support - Wiki

Tutorials:
ADO - Wiki, WebDriver - Wiki

 

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

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

Link to post
Share on other sites

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
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
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...