[wtr-general] Re: Encountered an error c is null (Selenium::WebDriver::Error::UnknownError)

2012-04-18 Thread Mohsen Qureshi
Hi Shekhar Did you find a resolution to this issue, I have been seeing this recently? Thanks Mo On Apr 4, 2:22 pm, shekhar karande shekhar.kara...@gmail.com wrote: Hi  I am running a few tests on Firefox using Watir web-driver, I face the c is null (Selenium::WebDriver::Error::UnknownError)

[wtr-general] getting browser ip (using proxy)

2012-04-18 Thread introvert
How is it possible to get browser IP with Watir? I'm using proxy and I want to verify if it's working correctly. Perhaps there is some other way if proxy is working? Here's my current code: profile = Selenium::WebDriver::Firefox::Profile.new profile.proxy = Selenium::WebDriver::Proxy.new :http

Re: [wtr-general] getting browser ip (using proxy)

2012-04-18 Thread Željko Filipin
On Wed, Apr 18, 2012 at 4:06 PM, introvert aljaz.faj...@gmail.com wrote: How is it possible to get browser IP with Watir? Left a comment at http://stackoverflow.com/q/10205040/17469 Željko -- watir.com/book - author -- Before posting, please read http://watir.com/support. In short: search

[wtr-general] Re: getting browser ip (using proxy)

2012-04-18 Thread Chuck van der Linden
There are a number of websites that will report your IP address back to you. Hit one and pull the value from the text (regular expressions are your friend) http://whatismyip.org/ www.whatsmyip.org I like the first one best when using it manually (it's cleaner and less cluttered) But since

[wtr-general] Using single watir script to test chrome/ff/ie

2012-04-18 Thread iherebyresign
Hi, I'm looking for a way to use a single ruby script to execute all of my test script within three browsers (chrome/ff/ie). One script, say main.rb, has the following code: def launch_browser (browser) if browser == :chrome @b = Watir::Browser.new :chrome, :switches = [==ignore-certificate-

Re: [wtr-general] Using single watir script to test chrome/ff/ie

2012-04-18 Thread bis
That won't work as easily as that because not all browsers take :switches It will fail when you try to run the browser as anything other than chrome also in order to run it for the different browsers you would need to edit the fire probably better to set up an environment variable so you can

Re: [wtr-general] Using single watir script to test chrome/ff/ie

2012-04-18 Thread Chuck van der Linden
Agree with what Oscar says below An environment variable is an easy way to pass the settings on the fly since a lot of CI systems have the ability to do that. I'd still use your launch_browser method, but inside it use a case statement for the browser and then you can have appropriate

[wtr-general] Re: Safari Support and Watir Webdriver

2012-04-18 Thread Dan
Really works quite nice on a Mac for the first version! On Tuesday, April 17, 2012 4:11:54 PM UTC-4, Chuck van der Linden wrote: FYI the Watir-Webdriver blog has a new blog post up that describes the current state of Safari support (which is still kinda DYI)

[wtr-general] Success with headless browser on Windows/JRuby/watir-webdriver

2012-04-18 Thread cootcraig
I followed the example in this blog: http://watirmelon.com/2010/12/14/watir-webdriver-a-detailed-introduction/ I grabbed the selenium-server-standalone jar and put in my app folder # This is working on Windows/JRuby! require rubygems require bundler/setup require watir-webdriver require