[wtr-general] FireWatir bug using exists? on a form element with xpath

2009-03-05 Thread Kevin White
fixed, did it recur, is my installation broken, ??? I've coded around it using element.attribute_value() but I really wanted to use the xpath instead. --Kevin White --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[wtr-general] Re: FireWatir bug using exists? on a form element with xpath

2009-03-05 Thread Kevin White
5, 3:48 pm, Kevin White wrote: > Here is a piece of code that doesn't work in FireWatir 1.6.2: > > require 'watir' > > Watir::Browser.default = 'firefox' > browser = Watir::Browser.new > > browser.goto("http://www.google.com";) > > sea

[wtr-general] FireWatir sometimes fails when Firefox takes time to load

2009-03-26 Thread Kevin White
I've noticed that my tests will fail sometimes because Firefox takes too long to load. For example, I just went to launch a test for the first time this day, and I received this error: 1) Error: test_08_visiting_direct_links_goes_to_login (TC_EWWC_StandardBasics_Login_FireFox): Watir::Exception

[wtr-general] Browser.url does not return proper URL immediately after a browser.goto statement

2009-03-26 Thread Kevin White
I'm trying to test that a web application always redirects back to a login page if you try to go to one of the application's pages when you're not logged in. First, I do: browser.goto("http://www.pagethatredirects.com";) Then, I look at the contents of @browser.url and I get "about: blank", whi

[wtr-general] Re: Browser.url does not return proper URL immediately after a browser.goto statement

2009-03-26 Thread Kevin White
m" "www.microsoft.com") sites.each do |url| puts "going to website: #{url}" browser.goto(url) puts "Browser went to: #{browser.url}" end On Mar 26, 10:46 am, Kevin White wrote: > I'm trying to test that a web application always redirects

[wtr-general] Re: Browser.url does not return proper URL immediately after a browser.goto statement

2009-03-26 Thread Kevin White
quot; > end > > On Mar 26, 8:50 am, George wrote: > > > Hi Kevin, > > > I did a quick check...I think you just need whitespace, not quotes to > > separate your data using w{}.  You'll also need to use {} instead of > > (). > > > -George > >