Jump to content

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Find out more here. X
X


Photo

IE9 Automation Problems


  • Please log in to reply
100 replies to this topic

#81 Valik

Valik

    Former developer.

  • Active Members
  • PipPipPipPipPipPip
  • 18,879 posts

Posted 12 October 2011 - 12:49 AM

It's fixed in beta 3.3.7.18.







#82 Vishal85

Vishal85

    Seeker

  • Active Members
  • 41 posts

Posted 13 October 2011 - 02:06 AM

I looked at http://www.autoitscript.com/site/autoit/downloads/ but i dont find this version. Latest version i can find to download is 3.3.6.1. How can i download AutoIt beta 3.3.7.18.

#83 GEOSoft

GEOSoft

    Sure I'm senile. What's your excuse?

  • MVPs
  • 10,573 posts

Posted 13 October 2011 - 02:16 AM

http://www.autoitscript.com/autoit3/files/beta/autoit/
GeorgeQuestion about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.*** The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number.Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else."Old age and treachery will always overcome youth and skill!"

#84 Vishal85

Vishal85

    Seeker

  • Active Members
  • 41 posts

Posted 13 October 2011 - 02:28 AM

Thank you!!! This helps!! When do you plan to move this to production version of AutoIt. Could there be any issue using beta?

#85 Richard Robertson

Richard Robertson

    Universalist

  • Active Members
  • PipPipPipPipPipPip
  • 10,333 posts

Posted 13 October 2011 - 12:48 PM

Thank you!!! This helps!! When do you plan to move this to production version of AutoIt. Could there be any issue using beta?

Not particularly. There are issues in production releases too. They just pick times to release things.

#86 GEOSoft

GEOSoft

    Sure I'm senile. What's your excuse?

  • MVPs
  • 10,573 posts

Posted 13 October 2011 - 12:57 PM

Beta is what it is. Possibly bug free and possibly not. I can tell you that there have been several bugs fixed in the current Beta. Have any new bugs been introduced? Probably; but the devs won't know until someone runs the beta and reports them.
GeorgeQuestion about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.*** The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number.Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else."Old age and treachery will always overcome youth and skill!"

#87 Vishal85

Vishal85

    Seeker

  • Active Members
  • 41 posts

Posted 13 October 2011 - 03:03 PM

OK..I have IE9 on test machines...I will test soon and report the results here...Thanks everyone for your time and help!!

#88 trancexx

trancexx

    Queen F. Elizabeth MCXI

  • Active Members
  • PipPipPipPipPipPip
  • 6,246 posts

Posted 13 October 2011 - 05:53 PM

Make sure no animal is harmed during tests. We at us care.
...... ......
.:oOOOOo:. .:oOOOOo:.
.:oOO:'':Oo:. .:oO:'':OOo:.
.:oO: 'Oo:oO' :Oo:.
:oO: 'o'
:Oo:
:oO: :Oo:
':oO: OT9AO0IEDrk :Oo:'
':oO: :Oo:'
':oO. .Oo:'
':oO
. .Oo:'
':oO. .Oo:'
':oO. .Oo:'
'oO:Oo'
'o' :kiss:





.
eMyvnE


#89 dv8

dv8

    Prodigy

  • Active Members
  • PipPipPip
  • 191 posts

Posted 02 November 2011 - 12:26 PM

Hello again guys and gals, :D
I found another issue with IE9 and _IEFormElementOptionselect today...
The example script below fills in only the birth date on the DailyMotion registration form and then submit the form.
In IE9, along with the errors for the other required fields, you get an error for the birthday too: "Your birthdate is required".
In IE8, the errors are only shown for the other fields, and the birthday is fine.
The tests are made with AutoIt 3.3.7.20

#include <IE.au3> $oIE=_IECreate("<a href='http://www.dailymotion.com/register' class='bbc_url' title='External link' rel='nofollow external'>http://www.dailymotion.com/register"</a>) $oForm=_IEFormGetObjByName($oIE,"form_register") $oSelect=_IEFormElementGetObjByName($oForm,"birthdate_month") _IEFormElementOptionSelect($oSelect, "10", 1, "byText") $oSelect2=_IEFormElementGetObjByName($oForm,"birthdate_day") _IEFormElementOptionSelect($oSelect2, "10", 1, "byText") $oSelect3=_IEFormElementGetObjByName($oForm,"birthdate_year") _IEFormElementOptionSelect($oSelect3, "1960", 1, "byText") $oSubmit=_IEFormElementGetObjByName($oForm,"register_submit") _IEAction($oSubmit,"click")


#90 DaleHohm

DaleHohm

    Think of IE as an API...

  • MVPs
  • 5,984 posts

Posted 07 November 2011 - 10:04 PM

Time for a Trac bug report for the latest beta. The following code triggers the event routine showing an onchange event with 3.3.6.1 with IE9 in both IE9 Standards mode and compatability mode, but not with 3.3.7.21 in either mode.

Please enter the report and reply with a cross reference here.

Dale

#include <IE.au3> $oIE = _IECreate("[url="http://www.dailymotion.com/register"]http://www.dailymotion.com/register[/url]")   $oForm = _IEFormGetObjByName($oIE, "form_register") $oSelect = _IEFormElementGetObjByName($oForm, "birthdate_month") ObjEvent($oSelect, "EVT_0") $oSelect.fireEvent("onChange") Sleep(1000) Exit Func EVT_0($s)  ConsoleWrite("Event: " & $s & @CRLF) EndFunc

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


#91 Valik

Valik

    Former developer.

  • Active Members
  • PipPipPipPipPipPip
  • 18,879 posts

Posted 07 November 2011 - 10:12 PM

Time for a Trac bug report for the latest beta. The following code triggers the event routine showing an onchange event with 3.3.6.1 with IE9 in both IE9 Standards mode and compatability mode, but not with 3.3.7.21 in either mode.

Please enter the report and reply with a cross reference here.

Dale

#include <IE.au3> $oIE = _IECreate("[url="http://www.dailymotion.com/register"]http://www.dailymotion.com/register[/url]") $oForm = _IEFormGetObjByName($oIE, "form_register") $oSelect = _IEFormElementGetObjByName($oForm, "birthdate_month") ObjEvent($oSelect, "EVT_0") $oSelect.fireEvent("onChange") Sleep(1000) Exit Func EVT_0($s) ConsoleWrite("Event: " & $s & @CRLF) EndFunc

Does it work in any of the other recent betas?

#92 trancexx

trancexx

    Queen F. Elizabeth MCXI

  • Active Members
  • PipPipPipPipPipPip
  • 6,246 posts

Posted 07 November 2011 - 10:33 PM

Function must be named EVT_0onchange in order for that code to work.

DaleHohm exhibits using undocumented feature that was removed from the language.
...... ......
.:oOOOOo:. .:oOOOOo:.
.:oOO:'':Oo:. .:oO:'':OOo:.
.:oO: 'Oo:oO' :Oo:.
:oO: 'o'
:Oo:
:oO: :Oo:
':oO: OT9AO0IEDrk :Oo:'
':oO: :Oo:'
':oO. .Oo:'
':oO
. .Oo:'
':oO. .Oo:'
':oO. .Oo:'
'oO:Oo'
'o' :kiss:





.
eMyvnE


#93 DaleHohm

DaleHohm

    Think of IE as an API...

  • MVPs
  • 5,984 posts

Posted 08 November 2011 - 01:21 AM

Ah, you're right. The following code shows that the events are being fired in all cases and that the birthdate validation message appears when in IE9 standards mode, but not in compatability mode.

In this case, I do not know what is different on that page, dv8. It will take digging into the validation routines to see that they are relying upon.

Dale

AutoIt         
#include <IE.au3> $oIE = _IECreate([url="http://www.dailymotion.com/register"]http://www.dailymotion.com/register[/url]) $oForm = _IEFormGetObjByName($oIE, "form_register") $oSelect1 = _IEFormElementGetObjByName($oForm, "birthdate_month") $oSelect2=_IEFormElementGetObjByName($oForm,"birthdate_day") $oSelect3=_IEFormElementGetObjByName($oForm,"birthdate_year") $oSubmit=_IEFormElementGetObjByName($oForm,"register_submit") ObjEvent($oSelect1, "EVT_") ObjEvent($oSelect2, "EVT_") ObjEvent($oSelect3, "EVT_") ObjEvent($oSubmit, "EVT_") _IEFormElementOptionSelect($oSelect1, "10", 1, "byText") _IEFormElementOptionSelect($oSelect2, "10", 1, "byText") _IEFormElementOptionSelect($oSelect3, "1960", 1, "byText") _IEAction($oSubmit,"click") Sleep(1000) Exit Func EVT_onChange()     Local $o = @COM_EventObj     ConsoleWrite("Event onChange " & $o.name & @CRLF) EndFunc Func EVT_onClick()     Local $o = @COM_EventObj     ConsoleWrite("Event onClick " & $o.name & @CRLF) EndFunc

Edited by DaleHohm, 08 November 2011 - 01:23 AM.

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


#94 dv8

dv8

    Prodigy

  • Active Members
  • PipPipPip
  • 191 posts

Posted 08 November 2011 - 06:52 AM

Thanks guys! I did some tests with other forms with normal drop-downs and the events are fired OK there with IE9 in normal mode. Apparently DaleHohm is right and this site is using some twisted validation routines, but what bugs me is that my demonstration code works just fine on my other PC with IE8. So it must be something M$ have done with IE9. :D

#95 dv8

dv8

    Prodigy

  • Active Members
  • PipPipPip
  • 191 posts

Posted 08 November 2011 - 10:13 AM

Hello again Dale and everyone else,
I run into something else today...
Before the recent COM changes in AutoIt, the following script would loop forever if you close the browser window before it has finished loading the page:
#include <IE.au3> _IECreate("<a href='http://youtube.com' class='bbc_url' title='External link' rel='nofollow external'>http://youtube.com"</a>)

Now with the latest beta the script crashes with the message: "The requested action with this object has failed." I realize this is the right way to work, but is there any way I can prevent these kind of errors from crashing the script?

Edited by dv8, 08 November 2011 - 10:14 AM.


#96 Mat

Mat

    43 38 48 31 30 4E 34 4F 32

  • MVPs
  • 5,067 posts

Posted 08 November 2011 - 12:59 PM

Hello again Dale and everyone else,
I run into something else today...
Before the recent COM changes in AutoIt, the following script would loop forever if you close the browser window before it has finished loading the page:

#include <IE.au3> _IECreate("<a href='http://youtube.com' class='bbc_url' title='External link' rel='nofollow external'>http://youtube.com"</a>)

Now with the latest beta the script crashes with the message: "The requested action with this object has failed." I realize this is the right way to work, but is there any way I can prevent these kind of errors from crashing the script?

Register a com error handler?

#97 pierrotm777

pierrotm777

    Wayfarer

  • Active Members
  • Pip
  • 91 posts

Posted 16 November 2011 - 12:37 PM

I have an issue with a Gui and a html embedded if the url use the html5 code .
I test on Vista 32bits and IE9!
Plain Text         
#include <GUIConstantsEx.au3> #Region ;**** Directives created by AutoIt3Wrapper_GUI **** #AutoIt3Wrapper_outfile=ArtOfTouch.exe #AutoIt3Wrapper_Compression=4 #AutoIt3Wrapper_Res_Fileversion=0.1.0.0 #EndRegion ;**** Directives created by AutoIt3Wrapper_GUI **** #include <IE.au3> #include <WindowsConstants.au3> #include <WindowsConstants.au3> #include <misc.au3> _Singleton(@ScriptName) $WindowsName = "ArtOfTouch" $url = "<a href='https://www.artoftouch.com/en-us/#/create%22;lecture' class='bbc_url' title='External link' rel='nofollow external'>https://www.artoftouch.com/en-us/#/create";lecture</a> de la page html _IEErrorHandlerRegister() $ie = _IECreateEmbedded() ; Create Reciver window $hwmd_Reciver = GUICreate($WindowsName, 800, 500, 0, 0);,$WS_OVERLAPPEDWINDOW) $ieobject = GUICtrlCreateObj($ie, 0, 0, 800, 500) _IENavigate($ie, $url, 0) ;msgbox(0,"",@error) GUISetState(@SW_SHOW) While 1 $msg = GUIGetMsg() If $msg = $GUI_EVENT_CLOSE Then Exit Sleep(100) Wend

Thanks for all help !

Edited by pierrotm777, 16 November 2011 - 12:38 PM.


#98 MvL

MvL

    Seeker

  • Active Members
  • 39 posts

Posted 21 November 2011 - 10:57 AM

I have entered my new script 'Show IE objects' in the example scrips area.
Because all Form elements are accessed, the additonal time spent by the new beta 3.3.7.21 becomes significant.
Please reply.

#99 MvL

MvL

    Seeker

  • Active Members
  • 39 posts

Posted 29 November 2011 - 05:10 PM

Most delay seems to be due to the Excel method
$oExcel.Cells($Row, $Column).Comment.Text($str)
in Example Scripts: Show IE objects

My other new Example script
Script line generator for Internet Explorer
that uses no Excel methods, runs smoothly.

#100 MvL

MvL

    Seeker

  • Active Members
  • 39 posts

Posted 01 December 2011 - 06:45 PM

Workaround: replace:
$oExcel.Cells($Row, $Column).Comment.Text($str)
by
$oExcel.Cells($Row, $Column).value = $str
$oExcel.Cells($Row, $Column).Interior.Color = 255 ; Red

and add the comment marker in front of the lines:
; $oExcel.Selection.Comment.Visible = False
; $oExcel.Cells($Row, $Column).AddComment
; $oExcel.Cells($Row, $Column).Comment.Shape.Width = 250
; $oExcel.Cells($Row, $Column).Comment.Shape.Height = 100




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users