Sign in to follow this  
Followers 0
hendrikhe

Internet Explorer javascript

2 posts in this topic

Good afternoon,

I don´t know why I have so much problems scripting with AutoIt when I try to script something for browsers.

Yes I searched, I tried and I failed. I started to try with Chrome but seems that IE is more supported.

The main problem is that the site that I am trying to read data is in javascript and at the moment for me it is ° encrypted° 

I am analyst and create tickets in a CA Service Desk Manager. I would like to automaticate it a bit. 

I would like to search for firstname, lastname, phone number and location of the user and copy paste it.

At the moment I am not even able to search for the lastname "Smith" . Finding this values and able to copy paste it would be awesome...

I know that you wont have access to this site that is the reason that I attached a screeshot. Maybe someone can give me an advise

seems that I am blind regarding AutoIt with browser.

 

 

 

 

 

 

 

 

ServideDeskManager.jpg

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Hi hendrikhe,

In order to automate values from IE you need to read the page and get the contents of certain elements from the page. Just by looking at the page you will not be able to this. You need to look at the source of the page and identify the HTML elements that contain the text you want to read/get/copy/etc. For example you can use firebug in firefox to inspect the document and get html output.

Take a look at: https://www.autoitscript.com/autoit3/docs/libfunctions/_IECreate.htm (to open IE with Autoit and get a browser handler), https://www.autoitscript.com/autoit3/docs/libfunctions/_IEDocReadHTML.htm (to read the page source), https://www.autoitscript.com/autoit3/docs/libfunctions/_IEGetObjById.htm (to target the desired element - depending on how the page is written you may need to use the "_IEFormElementGetObjByName" function) and https://www.autoitscript.com/autoit3/docs/libfunctions/_IEAction.htm (in case you need to perform other action inside the browser).

 

 

Edited by alexandruc

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