Re: [wtr-general] Opening a specific copy of firefox

2012-12-05 Thread Joshua Homer
So, I wanted to know if there is a way to bypass the timeout or change it 
to like 3 minutes or something?

On Wednesday, December 5, 2012 4:47:09 PM UTC-7, Joshua Homer wrote:
>
> It opens Vidalia, which after vidalia connects to Tor it opens firefox, 
> but this process takes a minute or two.
>
> On Wednesday, December 5, 2012 1:49:17 PM UTC-7, Željko Filipin wrote:
>>
>> On Wed, Dec 5, 2012 at 8:43 PM, Joshua Homer wrote:
>>
>>> Now my problem is, that when this opens it times out after 60 seconds 
>>> for not finding a firefox instance.
>>
>>  
>> I did not understand what is going on here. It opens Firefox, but then it 
>> complains?
>>
>> Željko
>>
>

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com


Re: [wtr-general] Opening a specific copy of firefox

2012-12-05 Thread Joshua Homer
It opens Vidalia, which after vidalia connects to Tor it opens firefox, but 
this process takes a minute or two.

On Wednesday, December 5, 2012 1:49:17 PM UTC-7, Željko Filipin wrote:
>
> On Wed, Dec 5, 2012 at 8:43 PM, Joshua Homer 
> 
> > wrote:
>
>> Now my problem is, that when this opens it times out after 60 seconds for 
>> not finding a firefox instance.
>
>  
> I did not understand what is going on here. It opens Firefox, but then it 
> complains?
>
> Željko
>

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com


Re: [wtr-general] Opening a specific copy of firefox

2012-12-05 Thread Željko Filipin
On Wed, Dec 5, 2012 at 8:43 PM, Joshua Homer wrote:

> Now my problem is, that when this opens it times out after 60 seconds for
> not finding a firefox instance.


I did not understand what is going on here. It opens Firefox, but then it
complains?

Željko

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com


Re: [wtr-general] Opening a specific copy of firefox

2012-12-05 Thread Joshua Homer
Thank you, that worked great.  Now my problem is, that when this opens it 
times out after 60 seconds for not finding a firefox instance.  Is there 
anyway I can extend that?  Tor has to open vidalia and connect before it 
opens the firefox window.

Thanks again.

On Wednesday, December 5, 2012 11:12:20 AM UTC-7, Željko Filipin wrote:
>
> On Wed, Dec 5, 2012 at 7:03 PM, Joshua Homer 
> > 
> wrote:
> > This is what I had, and it opened the regular firefox.
>
> My mistake.
>
> This is how to do it with selenium-webdriver:
>
> http://code.google.com/p/selenium/wiki/RubyBindings#Custom_Firefox_path
>
> Selenium::WebDriver::Firefox.path = "/path/to/firefox"
> driver = Selenium::WebDriver.for :firefox
>
> Let me know if you can not figure out how to do it with watir-webdriver.
>
> Željko
>

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com


Re: [wtr-general] Opening a specific copy of firefox

2012-12-05 Thread Željko Filipin
On Wed, Dec 5, 2012 at 7:03 PM, Joshua Homer 
wrote:
> This is what I had, and it opened the regular firefox.

My mistake.

This is how to do it with selenium-webdriver:

http://code.google.com/p/selenium/wiki/RubyBindings#Custom_Firefox_path

Selenium::WebDriver::Firefox.path = "/path/to/firefox"
driver = Selenium::WebDriver.for :firefox

Let me know if you can not figure out how to do it with watir-webdriver.

Željko

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com


Re: [wtr-general] Jenkins with Watir

2012-12-05 Thread Pavak Shah
Thanks for getting back to me.
I haven't try anything. I tried to google it but I couldn't find how can I 
setup watir with Jenkins.
 
But I will look the links.
 
Thanks again for your help.

On Wednesday, December 5, 2012 10:53:10 AM UTC-5, Željko Filipin wrote:

> On Wed, Dec 5, 2012 at 4:40 PM, Pavak Shah 
> > wrote:
>
>> is there any one who can help me to setup watir with jenkins
>
>
> There is nothing special that you have to do. What have you tried? Is 
> there a problem?
>
> You can take a look at a test automation solution that I have created for 
> a client:
>
> http://filipin.eu/test-automation-at-homeswap-com/
>
> And the project that I am working on now is at Github, you can see how 
> things are set up:
>
> https://github.com/wikimedia/qa-browsertests
>
> We have basic instructions on how to set up a job that runs Watir tests:
>
> https://github.com/wikimedia/qa-browsertests/blob/master/docs/jenkins.md
>
> Željko
> --
> https://leanpub.com/watirbook 
>

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com


Re: [wtr-general] Opening a specific copy of firefox

2012-12-05 Thread Joshua Homer
Hello Željko,

Thank you for your quick response! Unfortunately that didn't open the 
proper firefox. 

profile = Selenium::WebDriver::Firefox::Profile.new
profile['webdriver.firefox.bin'] = "T:\Tor 
Browser\FirefoxPortable\App\Firefox\tbb-firefox.exe"
@ff = Watir::Browser.new :firefox, :profile => profile

This is what I had, and it opened the regular firefox.

Thanks for your help :)

On Wednesday, December 5, 2012 4:18:46 AM UTC-7, Željko Filipin wrote:
>
> On Wed, Dec 5, 2012 at 10:06 AM, Joshua Homer 
> 
> > wrote:
>
>> I am building a small site on the tor's hidden service and would like to 
>> be able to test it, is there a way I can open the Tor Browser (just 
>> firefox) instead of the regular firefox?
>
>
> Something like this should work:
>
> profile = Selenium::WebDriver::Firefox::Profile.new
> profile['webdriver.firefox.bin'] = "/path/to/file"
> browser = Watir::Browser.new :firefox, :profile => profile
>
> More info:
>
> http://watirwebdriver.com/firefox/
> http://code.google.com/p/selenium/wiki/FirefoxDriver
>
> Željko
> --
> https://leanpub.com/watirbook 
>

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com


Re: [wtr-general] Jenkins with Watir

2012-12-05 Thread Željko Filipin
On Wed, Dec 5, 2012 at 4:40 PM, Pavak Shah  wrote:

> is there any one who can help me to setup watir with jenkins


There is nothing special that you have to do. What have you tried? Is there
a problem?

You can take a look at a test automation solution that I have created for a
client:

http://filipin.eu/test-automation-at-homeswap-com/

And the project that I am working on now is at Github, you can see how
things are set up:

https://github.com/wikimedia/qa-browsertests

We have basic instructions on how to set up a job that runs Watir tests:

https://github.com/wikimedia/qa-browsertests/blob/master/docs/jenkins.md

Željko
--
https://leanpub.com/watirbook

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com


[wtr-general] Jenkins with Watir

2012-12-05 Thread Pavak Shah
Hello All,

I am not sure if this is the right group to ask question about Jenkins but 
is there any one who can help me to setup watir with jenkins.

Thanks in Advance,

Pavak.

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com


Re: [wtr-general] Error while running Script

2012-12-05 Thread Željko Filipin
On Wed, Dec 5, 2012 at 1:59 PM, Ashish  wrote:
> I am using ruby 1.9.3 with watir 1.8.1 for testing an application.
However i am getting Error  "undefined method `add_assertion' for class
`Watir::TestCase' (NameError)" on running a script.

Please provide relevant code.

> Also m getting an error "Use 1.9.0 version of ruby for 32-bit Win XP"
while installing watir 1.8.1 with ruby 1.8.7.

Relevant code, again. And the entire error message.

Željko
--
https://leanpub.com/watirbook

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com


[wtr-general] Error while running Script

2012-12-05 Thread Ashish
Hello!

I am using ruby 1.9.3 with watir 1.8.1 for testing an application. However 
i am getting Error  "undefined method `add_assertion' for class 
`Watir::TestCase' (NameError)" on running a script. 
Also m getting an error "Use 1.9.0 version of ruby for 32-bit Win XP" while 
installing watir 1.8.1 with ruby 1.8.7.

Thanks,
Ashish

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com


Re: [wtr-general] Opening a specific copy of firefox

2012-12-05 Thread Željko Filipin
On Wed, Dec 5, 2012 at 10:06 AM, Joshua Homer wrote:

> I am building a small site on the tor's hidden service and would like to
> be able to test it, is there a way I can open the Tor Browser (just
> firefox) instead of the regular firefox?


Something like this should work:

profile = Selenium::WebDriver::Firefox::Profile.new
profile['webdriver.firefox.bin'] = "/path/to/file"
browser = Watir::Browser.new :firefox, :profile => profile

More info:

http://watirwebdriver.com/firefox/
http://code.google.com/p/selenium/wiki/FirefoxDriver

Željko
--
https://leanpub.com/watirbook

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com


[wtr-general] Opening a specific copy of firefox

2012-12-05 Thread Joshua Homer
Hello!

I am building a small site on the tor's hidden service and would like to be 
able to test it, is there a way I can open the Tor Browser (just firefox) 
instead of the regular firefox?

Thanks,
Josh

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com