Re: [Watin-users] Having trouble getting the canocial google example to work.
Brought to you by:
jvmenen
From: Mark L. <ma...@ml...> - 2009-02-28 15:22:18
|
thanks for the quick reply. I'm logged in as admin but don't know whetherprotected mode is on or off. Also I'm running of Vista can you point me to James article?I dontg think I've seen it yet. Cheers Mark On 2/27/09, jv...@li... <jv...@li...> wrote: > Hi Mark, > > Don't know for sure but being logged in as admin on your system and > protected mode off come to my mind. Also check out the post by James > kovacs about watin and vista. > > Hth, > Jeroen > > Verstuurd vanaf mijn iPhone > > Op 27 feb 2009 om 21:47 heeft Mark Levison <ma...@ml...> het > volgende geschreven:\ > >> I'm setting up WatiN as one of the Acceptance Test tools that I >> would like a dev team to consider on Monday morning. I've downloaded >> the Watin zip, comment out everything but the smallest google >> example (running under nunit). When I run the browser pops up two ie >> windows - one blank and one with google. I then get the following >> exception: >> >> WatiN.Samples.UnitTest.GoogleTest.SearchForWatiNOnGoogleVerbose: >> WatiN.Core.Exceptions.ElementNotFoundException : Could not find >> INPUT (text password textarea hidden) or TEXTAREA element tag >> matching criteria: Attribute 'name' with value 'q' >> >> I'm assuming the problem is that its trying to work in the blank IE >> window and not the google one. FWIW the google page gets redirected >> to google.ca - but that definitely seems to id the textbox as 'q'. >> >> [Test] >> public void SearchForWatiNOnGoogleVerbose() >> { >> using (IBrowser ie = >> BrowserFactory.Create(BrowserType.InternetExplorer)) >> { >> ie.GoTo("http://www.google.com"); >> ie.TextField(Find.ByName("q")).Value = "WatiN"; >> ie.Button(Find.ByName("btnG")).Click(); >> Assert.IsTrue(ie.ContainsText("WatiN")); >> } >> } >> >> What am I missing? >> >> Confused in Ottawa and hoping to give a demo :-) >> Mark Levison >> >> >> Blog: http://www.notesfromatooluser.com/ >> Recent Entries: Agile/Scrum Smells: >> http://www.notesfromatooluser.com/2008/06/agilescrum-smells.html >> Agile Games for Making Retrospectives Interesting: >> http://www.notesfromatooluser.com/2008/10/agile-games-for-making-retrospectives-interesting.html >> --- >> --- >> --- >> --------------------------------------------------------------------- >> Open Source Business Conference (OSBC), March 24-25, 2009, San >> Francisco, CA >> -OSBC tackles the biggest issue in open source: Open Sourcing the >> Enterprise >> -Strategies to boost innovation and cut costs with open source >> participation >> -Receive a $600 discount off the registration fee with the source >> code: SFAD >> http://p.sf.net/sfu/XcvMzF8H >> _______________________________________________ >> Watin-users mailing list >> Wat...@li... >> https://lists.sourceforge.net/lists/listinfo/watin-users > -- Cheers Mark Levison Blog: http://www.notesfromatooluser.com/ Recent Entries: Agile/Scrum Smells: http://www.notesfromatooluser.com/2008/06/agilescrum-smells.html Agile Games for Making Retrospectives Interesting: http://www.notesfromatooluser.com/2008/10/agile-games-for-making-retrospectives-interesting.html |