Sign in to follow this  
Followers 0
coolooc

Clicking on some button by id

4 posts in this topic

Part from the HTML code:

.......

<div id="main-container">
        <div id="mainViewMessages"></div>
        <header id="toolbar">
            <img id="logo-img" src="images/01_Logo_temp.png" alt="logo" title="IDB graphic viewer logo" />
            <!-- <img id="logo-img" src="images/coolStyleTopLogoFrontline.png" alt="logo" title="IDB viewer logo" /> -->
            <h1 id="title">&lt;Job Name&gt;</h1>

           <div class="tool-button tool-button-36"  title="Open Job" id="open-job-dialog-button"></div>

......

We have some new program we build in the web in the HTML we create some button id="open-job-dialog-button"

I create a test in autoit and want to click on this id button (by the id and not by mouseclck with the positions).

I am trying controlclick but failed. Can you give me some function that with this?

Share this post


Link to post
Share on other sites



You should be able to accomplish this with some of the _IE* functions. Look up _IEGetObjById and _IEAction in the help file.

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

Hi,

Actually I dont hav experience in AutoIt. I try what you say and also "controlclick" function and also not getting the right results.

Can you give me the lines I suppose to write in order to click this specefic button (by the HTML code I added)?

In addition I need it work also with Chrome and FireFox. :(

Edited by coolooc

Share this post


Link to post
Share on other sites

This isn't a forum where you can come and expect others to write your code for you. I've already pointed you to the command that will help you do this with IE. Write some code and then come back and post it here for further assistance. :thumbsup:

As far as Chrome and Firefox, you may want to check >this thread in the Example Scripts section.

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