AutoIt with Selenium to handle dialogs?

322 views
Skip to first unread message

Joe Colantonio

unread,
Jul 2, 2014, 3:37:04 PM7/2/14
to thucydid...@googlegroups.com

I have a feeling this is a long shot but has anyone been successful using Thucydides with Selenium and AutoItX?

I have some IE specific tests that I need to automate that prompts the user to install an activeX  control in certain situations. Since this is a windows dialog Selenium will not recognize it.

My solution was to try and use the AutoItx Java bridge https://code.google.com/p/autoitx4java/ and it works find as a junit test automating notepad.

When I try to use in Thucydides in one of my scenarios I’m getting the following error message :

error java.lang.NoSuchFieldError: m_pDispatch

The error occurs on this line of code in one of my @When steps 

AutoItX x = new AutoItX();

Everything works fine until this point the browser launches and the scripts can login but as soon as it gets to the new AutoItx(); code it fails.

Any ideas or suggestions?

Thanks!

 Joe

John Smart

unread,
Jul 2, 2014, 9:16:07 PM7/2/14
to Joe Colantonio, thucydid...@googlegroups.com
I've never used AutoItX, but the error message does not look like something coming from a Java library (just based on the naming style). It looks like the Java library calling the bridge is not finding a field that it expects to be there, which might imply some sort of dependency conflict (it expects one library but when you run it through Thucydides it is resolving to another). So I'd suggest running with -e to try to get a stack trace, and checking the dependency graph for any conflicts.

- John.


--
You received this message because you are subscribed to the Google Groups "Thucydides Users Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to thucydides-use...@googlegroups.com.
To post to this group, send email to thucydid...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
___________________________________________________
John Smart | Wakaleo Consulting  |  +61 407 247 642
Optimizing your software development process
http://www.wakaleo.com  |  john....@wakaleo.com
___________________________________________________

The dates for the 2014 BDD workshops have been scheduled! Check out our upcoming BDD/TDD Master classes and our Advanced BDD Requirements Workshops, coming soon to Sydney and Melbourne!
___________________________________________________
Reply all
Reply to author
Forward
0 new messages