Sign in to follow this  
Followers 0
aproximator

Troubles with IE.au3 with IE7

4 posts in this topic

_IEImgClick ($oIE, "/tra/booking.nsf/b-searchnl.gif")
ConsoleWrite($text)
WinWait("Windows Internet Explorer", "Kinderen")
ControlClick("Windows Internet Explorer", "Kinderen", "[CLASS:Button; TEXT:OK; Instance:1;]")

This piece of code doesn't function properly with IE7.

After clicking the image we never get back to the script ( while the click works )

Even the function ConsoleWrite($text) do not work.

Maybe somebody encountered this problem before...

Share this post


Link to post
Share on other sites



So you're implying that you tested this in IE6 and it worked as you expected it to, but it does not in IE7?

You don't supply nearly enough information here for anyone to help you. You'll find lots of talented people here willing to help you, but very few mind-readers.

There are no generic issues with IE7 (or any previous version for that matter) that would cause any trouble with the code you show. You need to explain more about what you are trying to do, provide the page or source that you are working with (I might guess that there is a Javascript onclick event associated with the image you are clicking on, but you don't provide enough context) and what you have tried to accomplsh your objectives so far.

Dale


Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl

MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model

Automate input type=file (Related)

Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded  Better Better?

IE.au3 issues with Vista - Workarounds

SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead?

Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

Hello Dale.

Thank you for your reaction. And let me help a little as I know the case.

Aproximator is trying to automate the booking process for the flight tickets site (http://transavia.com).

If you are requesting the information there (choose any booking with children) you get a popup.

It is some informational popup that warn you that children have to travel with adults. You have to click "OK" to go on.

In IE6 this problem was solved by the function

Func PassPopup()

If WinExists("Microsoft Internet Explorer", "Kinderen onder de 12") Then

ControlClick ( "Microsoft Internet Explorer", "Kinderen onder de 12", 1 )

EndIf

If WinExists("Microsoft Internet Explorer", "Children under") Then

ControlClick ( "Microsoft Internet Explorer", "Children under", 1 )

EndIf

EndFunc

In IE7 the window text became "Windows Internet Explorer" instead of "Microsoft Internet Explorer".

But the simple changing of this text did not help. Script stops at this moment and loose the control over the process.

I hope it is clearer now.

Edited by APRES

Share this post


Link to post
Share on other sites

Please use SciTe dubug mode in your script (see my sig) so taht you know exactly where your script stalls.

The likely cause of troubles like this is executing something with a creates an alert from the browser that does not allow control to be returned to the script until it is processed. That is what the technique in the 2nd example for _IEAction provides to work around.

Dale


Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl

MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model

Automate input type=file (Related)

Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded  Better Better?

IE.au3 issues with Vista - Workarounds

SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead?

Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble

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