Re: [wtr-general] Error when running the scripts in latest firefox browser

2012-08-03 Thread Adam Slovik

I am having the same problem - and I think I am on the latest gems. Any 
thoughts?

Adam 

$ irb
irb(main):001:0> require 'watir-webdriver'
=> true
irb(main):002:0> b = Watir::Browser.new :firefox
Selenium::WebDriver::Error::WebDriverError: unable to obtain stable firefox 
connection in 60 seconds (127.0.0.1:7055)
from 
/opt/bitnami/ruby/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.25.0/lib/selenium/webdriver/firefox/launcher.rb:79:in
 
`connect_until_stable'
from 
/opt/bitnami/ruby/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.25.0/lib/selenium/webdriver/firefox/launcher.rb:37:in
 
`block in launch'
from 
/opt/bitnami/ruby/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.25.0/lib/selenium/webdriver/firefox/socket_lock.rb:20:in
 
`locked'
from 
/opt/bitnami/ruby/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.25.0/lib/selenium/webdriver/firefox/launcher.rb:32:in
 
`launch'
from 
/opt/bitnami/ruby/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.25.0/lib/selenium/webdriver/firefox/bridge.rb:20:in
 
`initialize'
from 
/opt/bitnami/ruby/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.25.0/lib/selenium/webdriver/common/driver.rb:31:in
 
`new'
from 
/opt/bitnami/ruby/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.25.0/lib/selenium/webdriver/common/driver.rb:31:in
 
`for'
from 
/opt/bitnami/ruby/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.25.0/lib/selenium/webdriver.rb:65:in
 
`for'
from 
/opt/bitnami/ruby/lib/ruby/gems/1.9.1/gems/watir-webdriver-0.6.1/lib/watir-webdriver/browser.rb:35:in
 
`initialize'
from (irb):2:in `new'
from (irb):2
from /opt/bitnami/ruby/bin/irb:12:in `'


On Tuesday, July 24, 2012 7:46:57 AM UTC, Željko Filipin wrote:
>
> On Tue, Jul 24, 2012 at 9:35 AM, Gajendra Jain  
> wrote:
> > I am getting following error when i run the script in the Firefox 14.
> > Uncaught exception: unable to obtain stable firefox connection in 60 
> seconds (127.0.0.1:7055)
> > 
> C:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.21.2/lib/selenium/webdriver/firefox/launcher.rb:77:in
>  
> `connect_until_stable'
>
> Upgrade your gems, most importantly selenium-webdriver.
>
> Željko
> --
> filipin.eu 
>  

-- 
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] WATIR hourly help wanted - small project

2012-08-03 Thread rheoled
Hi All,

I am looking for help updating some Watir scripts on an hourly rate basis.  
This is a small project (less than 10 hours?) which could potentially lead 
to more at a later date.  If you're interested, please send me an email 
including your contact info, availability, and your hourly rate 
expectations.  Examples of Watir work you've done, a resume, and/or 
references/referrals are welcomed.  No third parties, please.

Thanks,
Ed

-- 
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] ruby cmd prmpt warning message

2012-08-03 Thread mani racha
Hi,
I am using ruby 1.8.7-p370 and upgraded gems with Mozilla firefox  14.0.1.
whenever I am executing a .rb file from command prompt , a warning message
below is appearing.

[WARNING] MultiJson is using the default adapter (ok_json). We recommend
loading
 a different JSON library to improve performance.

Although it doesn't effect the result, found bit irritating.
Any ideas???

'll be waiting for one's reply.

Thank you.

-- 
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] Re: Loading error in Watir!

2012-08-03 Thread mani racha
Hi,
require "rubygems" 
should be included there at first line of the code.
 Try it.


  
>

-- 
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] ruby cmd prmpt warning message

2012-08-03 Thread Željko Filipin
On Fri, Aug 3, 2012 at 1:24 PM, mani racha  wrote:
> [WARNING] MultiJson is using the default adapter (ok_json). We recommend
loading
>  a different JSON library to improve performance.

This should remove the warning (from command line):

gem install json

Željko
--
filipin.eu

-- 
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] ruby cmd prmpt warning message

2012-08-03 Thread mani racha
Hi Željko,
Thanks for your quick reply..
I have tried the command you 've suggested.
but the following error is coming.

Fetching: json-1.7.4.gem (100%)
The system cannot find the path specified.
ERROR:  Error installing json:
The 'json' native gem requires installed build tools.

Please update your PATH to include build tools or download the DevKit
from 'http://rubyinstaller.org/downloads' and follow the instructions
at 'http://github.com/oneclick/rubyinstaller/wiki/Development-Kit'

-- 
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] ruby cmd prmpt warning message

2012-08-03 Thread Željko Filipin
Well, the error message says it all. Do you understand the error message?

Željko

On Fri, Aug 3, 2012 at 1:51 PM, mani racha  wrote:

> Hi Željko,
> Thanks for your quick reply..
> I have tried the command you 've suggested.
> but the following error is coming.
>
> Fetching: json-1.7.4.gem (100%)
> The system cannot find the path specified.
> ERROR:  Error installing json:
> The 'json' native gem requires installed build tools.
>
> Please update your PATH to include build tools or download the DevKit
> from 'http://rubyinstaller.org/downloads' and follow the instructions
> at 'http://github.com/oneclick/rubyinstaller/wiki/Development-Kit'
>
>
>  --
> 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
>

-- 
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] ruby cmd prmpt warning message

2012-08-03 Thread mani racha
I will try out..


On Fri, Aug 3, 2012 at 5:23 PM, Željko Filipin  wrote:

> Well, the error message says it all. Do you understand the error message?
>
> Željko
>
> On Fri, Aug 3, 2012 at 1:51 PM, mani racha  wrote:
>
>> Hi Željko,
>> Thanks for your quick reply..
>> I have tried the command you 've suggested.
>> but the following error is coming.
>>
>> Fetching: json-1.7.4.gem (100%)
>> The system cannot find the path specified.
>> ERROR:  Error installing json:
>> The 'json' native gem requires installed build tools.
>>
>> Please update your PATH to include build tools or download the DevKit
>> from 'http://rubyinstaller.org/downloads' and follow the instructions
>> at 'http://github.com/oneclick/rubyinstaller/wiki/Development-Kit'
>>
>>
>>  --
>> 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
>>
>
>  --
> 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
>

-- 
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] ruby cmd prmpt warning message

2012-08-03 Thread mani racha
Hi  Željko,
I've followed the steps provided at github.
I've downloaded DEVkit and installed.

But whenever I am trying to execute

gem install rdiscount --platform=ruby

It says

Temporarily enhancing PATH to include DevKit...
Building native extensions.  This could take a while...
The system cannot find the path specified.
ERROR:  Error installing rdiscount:
ERROR: Failed to build gem native extension.

C:/Ruby187/bin/ruby.exe extconf.rb
checking for random()... no
checking for srandom()... no
checking for rand()... yes
checking for srand()... yes
creating Makefile


Gem files will remain installed in
C:/Ruby187/lib/ruby/gems/1.8/gems/rdiscount-1
.6.8 for inspection.
Results logged to
C:/Ruby187/lib/ruby/gems/1.8/gems/rdiscount-1.6.8/ext/gem_make
.out
I've tried some commands provided in that (listed below) to install native
extensions but couldn't able to get it.
gem install bson_ext --platform=ruby
gem install curb --platform=ruby -- --with-curl-lib="C:/curl/bin"
--with-curl-include="C:/curl/include

-- 
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] ruby cmd prmpt warning message

2012-08-03 Thread Željko Filipin
On Fri, Aug 3, 2012 at 2:41 PM, mani racha  wrote:
> The system cannot find the path specified.

Where did you install devkit? c:/devkit?

Željko
--
filipin.eu

-- 
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] ruby cmd prmpt warning message

2012-08-03 Thread mani racha
Yes  Željko .


On Fri, Aug 3, 2012 at 6:15 PM, Željko Filipin  wrote:

> On Fri, Aug 3, 2012 at 2:41 PM, mani racha  wrote:
> > The system cannot find the path specified.
>
> Where did you install devkit? c:/devkit?
>
> Željko
> --
> filipin.eu
>
> --
> 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
>

-- 
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] Re: Handling a windows file upload dialog box

2012-08-03 Thread Super Kevy
Check http://www.w3schools.com/jsref/dom_obj_fileupload.asp about the 
object your likely to be working with if standard html and not a flash 
based object.
 
You will find the form syntax something like: .  
Get it? "type=file"
 
Basic HTML is nice to know w3Schools offers easy to learn tutorials.
 
 
 
 

On Friday, August 3, 2012 1:44:29 AM UTC-5, mani racha wrote:

>  Hi Eric,
>>
> 've tried with your suggestion.
> oops..Its also of no use. 
>

-- 
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] Re: Handling a windows file upload dialog box

2012-08-03 Thread mani racha
Hi kevy,
that's so nice of you although it doesn't give me the result.


On Fri, Aug 3, 2012 at 6:57 PM, Super Kevy wrote:

> Check http://www.w3schools.com/jsref/dom_obj_fileupload.asp about the
> object your likely to be working with if standard html and not a flash
> based object.
>
> You will find the form syntax something like: .
> Get it? "type=file"
>
> Basic HTML is nice to know w3Schools offers easy to learn tutorials.
>
>
>
>
>
> On Friday, August 3, 2012 1:44:29 AM UTC-5, mani racha wrote:
>
>>  Hi Eric,
>>>
>> 've tried with your suggestion.
>> oops..Its also of no use.
>>
>  --
> 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
>

-- 
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] Re: Handling a windows file upload dialog box

2012-08-03 Thread Dan
If you're getting :

`set': No such file or directory - hi.txt

Then your path to the file isn't right.

b.file_input(:id => "fileuploadbox").set("C:\\folder\\hi.text")

or

b.file_input(:id => "fileuploadbox").set("C:/folder/hi.text")

or on a mac/linux

b.file_input(:id => "fileuploadbox").set("/Users/mani/Desktop/hi.text")

On Friday, August 3, 2012 9:32:49 AM UTC-4, mani racha wrote:
>
> Hi kevy,
> that's so nice of you although it doesn't give me the result.
>
>
> On Fri, Aug 3, 2012 at 6:57 PM, Super Kevy 
> wrote:
>
>> Check http://www.w3schools.com/jsref/dom_obj_fileupload.asp about the 
>> object your likely to be working with if standard html and not a flash 
>> based object.
>>  
>> You will find the form syntax something like: > >.  Get it? "type=file"
>>  
>> Basic HTML is nice to know w3Schools offers easy to learn tutorials.
>>  
>>  
>>  
>>  
>>
>> On Friday, August 3, 2012 1:44:29 AM UTC-5, mani racha wrote:
>>
>>>  Hi Eric,

>>> 've tried with your suggestion.
>>> oops..Its also of no use. 
>>>
>>  -- 
>> 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
>>
>
>

-- 
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] Re: Handling a windows file upload dialog box

2012-08-03 Thread mani racha
Hi Dan,
  Thank you for your lines of code.
  Unfortunately neither of them worked.


>>

-- 
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