Browser.goto command is not working

509 views
Skip to first unread message

goka priyanka

unread,
Aug 30, 2012, 10:17:25 PM8/30/12
to watir-...@googlegroups.com
Hello all,

Please see this video shot http://screencast.com/t/RRgPHxvFwTU and help me .Iam unable to invoke browser and launch google.com.

Thanks for your time
pri

Joe Fl

unread,
Aug 30, 2012, 10:32:42 PM8/30/12
to watir-...@googlegroups.com
Hi.

I see the issue.  you have something like this:
br = Watir::Browser.new.ff
it should be
br = Watir::Browser.new :ff

You need to remove the period infront of 'ff' and replace it with a colon.

Joe 

goka priyanka

unread,
Sep 1, 2012, 7:01:53 PM9/1/12
to watir-...@googlegroups.com
Joe,

Thanks for answering my question however i have seen an error message .
http://screencast.com/t/4nzYJbeEKZ1N


I have 2 questions

1.Why a pop is shown after this command br = Watir::Browser.new :ff and then an instance of ff is opened.(or is this the expected behavior?)
2.Why Am I seeing an error message for this command 

Please answer me...

Thanks for your precious time!!!!

On Thursday, August 30, 2012 10:17:25 PM UTC-4, goka priyanka wrote:

goka priyanka

unread,
Sep 1, 2012, 7:02:17 PM9/1/12
to watir-...@googlegroups.com

Joe Fl

unread,
Sep 2, 2012, 9:49:24 PM9/2/12
to watir-...@googlegroups.com
Hi,

Sometimes you need to include the starred line below:

* require 'rubygems'
require 'watir-browser'
browser = Watir::Browser.new :ff

In your code you do this (require 'Watir-webdriver').  I am not sure if that is causing the problem but you might change it to (require 'watir-webdriver').  
Try and keep your code to same as the examples.

What type of machine are you working on?  

Joe

goka priyanka

unread,
Sep 3, 2012, 9:57:09 PM9/3/12
to watir-...@googlegroups.com
Thanks Joe for your prompt reply.Iam working on Mac OS X Lion.
Iam getting all error messages.


Will I ever get to learn Watir....:(

Please advice me whats wrong....Iam very depressed!!!!

Thanks,
Pri

Joe Fleck

unread,
Sep 3, 2012, 10:13:48 PM9/3/12
to watir-...@googlegroups.com
Hi Pri,

I am so very sorry. One of my lines is incorrect.

require 'watir-webdriver' not 'watir-browser'

* require 'rubygems'
require 'watir-webdriver'
browser = watir::Browser.new :ff
browser.goto 'http://bit.ly/watir-example'

Let me know what happens and sorry again for leading you in the wrong direction.

Yes. You will learn WATIR. :-)

Joe
> --
> Before posting, please read http://watir.com/support. In short: search
> before you ask, be nice.
>
> watir-...@googlegroups.com
> http://groups.google.com/group/watir-general
> watir-genera...@googlegroups.com

ankita bansal

unread,
Sep 3, 2012, 10:33:26 PM9/3/12
to watir-...@googlegroups.com
It should be require 'watir-webdriver'
instead if require 'watir-browser'

Joe Fleck

unread,
Sep 6, 2012, 6:44:35 PM9/6/12
to watir-...@googlegroups.com
Hi Pri,

Just wondering if you got this resolved.

Joe

Sent from my iPad
Reply all
Reply to author
Forward
0 new messages