coolooc Posted October 2, 2014 Share Posted October 2, 2014 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"><Job Name></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? Link to comment Share on other sites More sharing options...
Danp2 Posted October 2, 2014 Share Posted October 2, 2014 You should be able to accomplish this with some of the _IE* functions. Look up _IEGetObjById and _IEAction in the help file. Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
coolooc Posted October 2, 2014 Author Share Posted October 2, 2014 (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 October 2, 2014 by coolooc Link to comment Share on other sites More sharing options...
Danp2 Posted October 2, 2014 Share Posted October 2, 2014 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. As far as Chrome and Firefox, you may want to check >this thread in the Example Scripts section. Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now