Watij fails for IE7/Vista

8 views
Skip to first unread message

scott taylor

unread,
Oct 25, 2009, 7:31:17 PM10/25/09
to watij
Hello,
I am having a problem, and several others have reported the same
issue(Vista, IE7.0.6), my test case is the simple "open google and
search 'Watij' " example. When I call IE.start(url) I get two
windows, and cannot access any of the textfields(it just hangs after
getting the main google page, and getElements() throws an
watij.runtime.UnknownObjectException). If I call ie.start() and then
ie.navigate(url), it just hangs after getting the google site. If I
try ie.start(), then ie.goTo(url), again, it just hangs after getting
the google site.

My thoughts are that this is a security problem maybe? I know in
the beginning I had to adjust my IE settings to disable script
debugging to get it some pieces to work. I have used watij for awhile
now, and I know my code worked on XP/IE7. Just to remove any fat
finger issues with any of my code, I used your code for test(slight
variations on this code used for the tests as stated above), which
fails miserably.

IE ie = new IE();
ie.start("www.google.com");
ie.textField(name,"q").set("Watij");
ie.button("Google Search").click();


Any help is greatly appreciated,
Scott Taylor

JonathanKohl

unread,
Nov 4, 2009, 6:29:24 PM11/4/09
to watij
I see the same thing with Vista/IE 8. Does anyone have any insight?

Thanks,

-Jonathan

Madieyna Lamine Fall

unread,
Nov 6, 2009, 2:56:24 PM11/6/09
to wa...@googlegroups.com
Hi again
 
I swithed back to VISTA with IE7 and after reading all suggestions I was able to make Watij web-testing work:
modify IE security settings and concentrate on local intranet by going to
tools ==> Internet option ==> security tab ==> local intranet ==> click sites button to define local trusted sites (like "http://localhost:8080") and disable (uncheck) protected mode (in local intranet only), all other tabs can have protected mode enabled (checked) with variable security settings.
 
 Hope that helps
 
thanks for all ,
Dieyna
Reply all
Reply to author
Forward
0 new messages