Sign in to follow this  
Followers 0
Syed23

Help needed on IE automation

11 posts in this topic

Hi Friends,

Today i came with new idea for automating our environment to make my team members manual job easy. The idea is we have an internal IE site where we will be having N no of labes parallaly all the labels will have their own Text box. my goal is i have read the content from that text box... since i have never came across of IE autmoation no idea or on how to do or what function available for it... :D is there anyone can help me on this? Please!


Thank you,Regards,[font="Garamond"][size="4"]K.Syed Ibrahim.[/size][/font]

Share this post


Link to post
Share on other sites



#3 ·  Posted (edited)

Thanks for the reply Bruce. i am trying to read the data from the text box.i have taken one example from the UDF and tried but it's not working. i know i am doing something wrong. can you guys correct me where i am doing wrong?

Edite: I tried to attach the screen shot but i was unable to do :D

#include <IE.au3>
$oIE = _IECreate("mysiteURL",0,1,1,1)
$oForm = _IEFormGetObjByName ($oIE, "ChangeNumber :")
$oText = _IEFormElementGetObjByName ($oForm, "PackageNumber:")
$IEAu3Version = _IE_VersionInfo ()
_IEFormElementSetValue ($oText, $IEAu3Version[5])
MsgBox(0, "Form Element Value", _IEFormElementGetValue ($oText))
Edited by Syed23

Thank you,Regards,[font="Garamond"][size="4"]K.Syed Ibrahim.[/size][/font]

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

Do we have any specific function to open IE URl like this ? http://www.testurl/PackageInfo.aspx?num=1234 this how my url will be look like. i want to open this URL and i have to get information of the text box. why i was not able to do with above code ? :D

Edited by Syed23

Thank you,Regards,[font="Garamond"][size="4"]K.Syed Ibrahim.[/size][/font]

Share this post


Link to post
Share on other sites

Do we have any specific function to open IE URl like this ? http://www.testurl/PackageInfo.aspx?num=1234 this how my url will be look like. i want to open this URL and i have to get information of the text box. why i was not able to do with above code ? :D

http://www.testurl does not exist. Please specify correct URL.

My UDFs, Abbrevs and Snippets
If you like my post, just click the like button :) 

Share this post


Link to post
Share on other sites

sorry forumer100. that is a internal website we are not suppose to provide and also you can't be able to access from outside of our domain! :D is there any other way you can help me ?


Thank you,Regards,[font="Garamond"][size="4"]K.Syed Ibrahim.[/size][/font]

Share this post


Link to post
Share on other sites

Do we have any specific function to open IE URl like this ? http://www.testurl/PackageInfo.aspx?num=1234 this how my url will be look like. i want to open this URL and i have to get information of the text box. why i was not able to do with above code ?

The URL is clearly obfuscated, but all it takes is _IECreate() if it was valid:
$sURL = "http://www.testurl/PackageInfo.aspx?num=1234"
$oIE = _IECreate($sURL)

You'll have to be more specific about this "text box" for more help. Is it an HTML input field, or does the page call a Flash object, is it inside of a frame or frame set, etc.? You could examine the page with a DOM inspector like DebugBar to see. If the "text box" is a pop up dialog of some kind, check it out with AU3Info.exe to see if it is an IE window or regular Windows dialog.

:D


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

Share this post


Link to post
Share on other sites

#8 ·  Posted (edited)

Thanks PsaltyDs for the suggestion.... it is a HTML input field... do you have any suggestion for me ?

Edited by Syed23

Thank you,Regards,[font="Garamond"][size="4"]K.Syed Ibrahim.[/size][/font]

Share this post


Link to post
Share on other sites

Thanks PsaltyDs for the suggestion.... it is a HTML input field... do you have any suggestion for me ?

Examine the page with a DOM inspector (I believe DebugBar was mentioned already) to see what kind of objects that input is a child of, and what identifiers it has (name or id). It could be as simple as setting the value with one of the _IE* functions, or it might take drilling down into Frames and Forms. Depends on the structure of that page.

:D


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

Share this post


Link to post
Share on other sites

#10 ·  Posted (edited)

Sorry for the delay reply PsaltyDS! i was on official trip to new region for new project.... what is that DOM inspector? where can i download it? sorry for not knowing about that debugger tool.... :) could you please tell me about that?

Edited by Syed23

Thank you,Regards,[font="Garamond"][size="4"]K.Syed Ibrahim.[/size][/font]

Share this post


Link to post
Share on other sites

Sorry for the delay reply PsaltyDS! i was on official trip to new region for new project.... what is that DOM inspector? where can i download it? sorry for not knowing about that debugger tool.... :) could you please tell me about that?

DOM inspector = a tool you can use to view webpage html layout, all attributes and attached events etc.

You may already have one:

Internet Explorer (8 & 9) => press F12

Google Chrome => ctrl + shift + i

Mozilla Firefox => Addon called Firebug (https://addons.mozilla.org/en-US/firefox/addon/firebug/?src=search)

1 person likes this

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