Re: [wtr-general] Trying to go back to watir 1.6.2, won't install correctly

2012-02-16 Thread Željko Filipin
On Thu, Feb 16, 2012 at 9:29 PM, Lisa Crispin 
wrote:
> I know, I had uninstalled Ruby 1.8.7 because the require 'watir' kept
failing, and installed Ruby 1.8.6, but now the install of watir won't work.

Is there a reason not to install ruby 1.9.3?

Ruby 1.8.6 probably has rubygems version so old that it can not be updated
with "gem update --system"

If you really like 1.8.6 take a look how I updated it on Mac, it should be
similar on Windows ("RubyGems on 10.5" chapter):

https://github.com/zeljkofilipin/watirbook/blob/master/installation/mac.md

> When I typed "gem install watir" in Ruby 1.8.7, I got Watir 2. I don't
want Watir 2, I want 1.6.2.

For instructions on how to install an older version of watir:

- go to https://rubygems.org/gems/watir
- click link "Show all versions (43 total)" (at the bottom of the page)
- click the version you like (1.6.2)
- page with instructions how to install that version will appear

In short:

gem install watir -v 1.6.2

Feel free to ping me on skype/gtalk/irc, it would probably be faster to
debug the problem that way.

Ž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] Trying to go back to watir 1.6.2, won't install correctly

2012-02-16 Thread Lisa Crispin
I know, I had uninstalled Ruby 1.8.7 because the require 'watir' kept
failing, and installed Ruby 1.8.6, but now the install of watir won't work.

When I typed "gem install watir" in Ruby 1.8.7, I got Watir 2. I don't want
Watir 2, I want 1.6.2. Will that just happen by magic? I know I can just
try it, but I'm getting really tired of uninstalling and installing things.

thanks,
Lisa

On Thu, Feb 16, 2012 at 6:28 PM, Željko Filipin wrote:

> On Thu, Feb 16, 2012 at 7:10 PM, Lisa Crispin 
> wrote:
> > I get *** LOCAL GEMS ***
>
> If it does not list watir gem there, then you do not have it installed.
> Try running this again:
>
> gem install watir
>
> Ž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
>



-- 
Lisa Crispin
Co-author with Janet Gregory, _Agile Testing: A Practical Guide for Testers
and Agile Teams_ (Addison-Wesley 2009)
Contributor to _Beautiful Testing_ (O'Reilly 2009)
http://lisacrispin.com
@lisacrispin on Twitter
http://entaggle.com/lisacrispin

-- 
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] Trying to go back to watir 1.6.2, won't install correctly

2012-02-16 Thread Željko Filipin
On Thu, Feb 16, 2012 at 7:10 PM, Lisa Crispin 
wrote:
> I get *** LOCAL GEMS ***

If it does not list watir gem there, then you do not have it installed. Try
running this again:

gem install watir

Ž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] Trying to go back to watir 1.6.2, won't install correctly

2012-02-16 Thread Lisa Crispin
I get *** LOCAL GEMS ***

On Thu, Feb 16, 2012 at 6:08 PM, Željko Filipin wrote:

> 2012/2/16 Lisa Crispin 
> > I still get the same error.
>
> What do you get if you execute this in the command line?
>
> gem list watir
>
> Ž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
>



-- 
Lisa Crispin
Co-author with Janet Gregory, _Agile Testing: A Practical Guide for Testers
and Agile Teams_ (Addison-Wesley 2009)
Contributor to _Beautiful Testing_ (O'Reilly 2009)
http://lisacrispin.com
@lisacrispin on Twitter
http://entaggle.com/lisacrispin

-- 
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] Trying to go back to watir 1.6.2, won't install correctly

2012-02-16 Thread Željko Filipin
2012/2/16 Lisa Crispin 
> I still get the same error.

What do you get if you execute this in the command line?

gem list watir

Ž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] Trying to go back to watir 1.6.2, won't install correctly

2012-02-16 Thread Lisa Crispin
My next bright idea was to uninstall ruby 1.8.7 and try installing 1.8.6,
which is what works on my old pc. That seemed to install ok, but when I do
gem update --system, I get an error "ERROR: While executing gem ...
(Gem::RemoteSourceException) HTTP response 302

Is there a different way to install watir 1.6.2 with ruby 1.8.6? I have
looked at the archived emails on this and they say to do gem update
--system and then gem install watir-1.6.2.gem. But neither of those works
for me now. They did work, with ruby 1.8.7, but require 'watir' doesn't
work with ruby 1.8.7 for me.

-- Lisa

2012/2/16 Lisa Crispin 

> Also, I tried putting the gems folder in my Path variable, someone
> suggested that to me on Twitter, that doesn't help either.
>
>
> 2012/2/16 Lisa Crispin 
>
>> I didn't have to do that on my other machine, but what the heck, I tried
>> adding require 'rubygems'. Here's a snippet of my code where the requires
>> are:
>> require 'test/unit'
>> require 'rubygems'
>> require 'watir'
>>
>> It doesn't help. I still get the same error. I read that page in your
>> book, but it looks like I'm doing what you suggest there.
>>
>> Other ideas?
>> thanks
>> Lisa
>>
>>
>> On Thu, Feb 16, 2012 at 5:07 PM, Željko Filipin > > wrote:
>>
>>> Hi Lisa,
>>>
>>> comments are inline.
>>>
>>> Željko
>>>
>>>
>>> On Thu, Feb 16, 2012 at 6:03 PM, Lisa Crispin 
>>> wrote:
>>> > I uninstalled whatever Ruby that was, and installed ruby 1.8.7 instead.
>>>
>>> Is there a reason for using ruby 1.8.7.? I would suggest that you
>>> install ruby 1.9.3.
>>>
>>> > However, when I try to run a script, I get an error 'require': no such
>>> file to load -- watir (LoadError).
>>>
>>> This usually happens when your ruby installation does not require
>>> rubygems by default. Try adding this to the top of the file:
>>>
>>> require "rubygems"
>>>
>>> By the way, I wrote about that problem in the book:
>>>
>>>
>>> https://github.com/zeljkofilipin/watirbook/blob/master/watir-in-five-minutes.md
>>>
>>> Ž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
>>>
>>
>>
>>
>> --
>> Lisa Crispin
>> Co-author with Janet Gregory, _Agile Testing: A Practical Guide for
>> Testers and Agile Teams_ (Addison-Wesley 2009)
>> Contributor to _Beautiful Testing_ (O'Reilly 2009)
>> http://lisacrispin.com
>> @lisacrispin on Twitter
>> http://entaggle.com/lisacrispin
>>
>>
>
>
> --
> Lisa Crispin
> Co-author with Janet Gregory, _Agile Testing: A Practical Guide for
> Testers and Agile Teams_ (Addison-Wesley 2009)
> Contributor to _Beautiful Testing_ (O'Reilly 2009)
> http://lisacrispin.com
> @lisacrispin on Twitter
> http://entaggle.com/lisacrispin
>
>


-- 
Lisa Crispin
Co-author with Janet Gregory, _Agile Testing: A Practical Guide for Testers
and Agile Teams_ (Addison-Wesley 2009)
Contributor to _Beautiful Testing_ (O'Reilly 2009)
http://lisacrispin.com
@lisacrispin on Twitter
http://entaggle.com/lisacrispin

-- 
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] Trying to go back to watir 1.6.2, won't install correctly

2012-02-16 Thread Lisa Crispin
Also, I tried putting the gems folder in my Path variable, someone
suggested that to me on Twitter, that doesn't help either.

2012/2/16 Lisa Crispin 

> I didn't have to do that on my other machine, but what the heck, I tried
> adding require 'rubygems'. Here's a snippet of my code where the requires
> are:
> require 'test/unit'
> require 'rubygems'
> require 'watir'
>
> It doesn't help. I still get the same error. I read that page in your
> book, but it looks like I'm doing what you suggest there.
>
> Other ideas?
> thanks
> Lisa
>
>
> On Thu, Feb 16, 2012 at 5:07 PM, Željko Filipin 
> wrote:
>
>> Hi Lisa,
>>
>> comments are inline.
>>
>> Željko
>>
>>
>> On Thu, Feb 16, 2012 at 6:03 PM, Lisa Crispin 
>> wrote:
>> > I uninstalled whatever Ruby that was, and installed ruby 1.8.7 instead.
>>
>> Is there a reason for using ruby 1.8.7.? I would suggest that you install
>> ruby 1.9.3.
>>
>> > However, when I try to run a script, I get an error 'require': no such
>> file to load -- watir (LoadError).
>>
>> This usually happens when your ruby installation does not require
>> rubygems by default. Try adding this to the top of the file:
>>
>> require "rubygems"
>>
>> By the way, I wrote about that problem in the book:
>>
>>
>> https://github.com/zeljkofilipin/watirbook/blob/master/watir-in-five-minutes.md
>>
>> Ž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
>>
>
>
>
> --
> Lisa Crispin
> Co-author with Janet Gregory, _Agile Testing: A Practical Guide for
> Testers and Agile Teams_ (Addison-Wesley 2009)
> Contributor to _Beautiful Testing_ (O'Reilly 2009)
> http://lisacrispin.com
> @lisacrispin on Twitter
> http://entaggle.com/lisacrispin
>
>


-- 
Lisa Crispin
Co-author with Janet Gregory, _Agile Testing: A Practical Guide for Testers
and Agile Teams_ (Addison-Wesley 2009)
Contributor to _Beautiful Testing_ (O'Reilly 2009)
http://lisacrispin.com
@lisacrispin on Twitter
http://entaggle.com/lisacrispin

-- 
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] Trying to go back to watir 1.6.2, won't install correctly

2012-02-16 Thread Lisa Crispin
I didn't have to do that on my other machine, but what the heck, I tried
adding require 'rubygems'. Here's a snippet of my code where the requires
are:
require 'test/unit'
require 'rubygems'
require 'watir'

It doesn't help. I still get the same error. I read that page in your book,
but it looks like I'm doing what you suggest there.

Other ideas?
thanks
Lisa

On Thu, Feb 16, 2012 at 5:07 PM, Željko Filipin wrote:

> Hi Lisa,
>
> comments are inline.
>
> Željko
>
>
> On Thu, Feb 16, 2012 at 6:03 PM, Lisa Crispin 
> wrote:
> > I uninstalled whatever Ruby that was, and installed ruby 1.8.7 instead.
>
> Is there a reason for using ruby 1.8.7.? I would suggest that you install
> ruby 1.9.3.
>
> > However, when I try to run a script, I get an error 'require': no such
> file to load -- watir (LoadError).
>
> This usually happens when your ruby installation does not require rubygems
> by default. Try adding this to the top of the file:
>
> require "rubygems"
>
> By the way, I wrote about that problem in the book:
>
>
> https://github.com/zeljkofilipin/watirbook/blob/master/watir-in-five-minutes.md
>
> Ž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
>



-- 
Lisa Crispin
Co-author with Janet Gregory, _Agile Testing: A Practical Guide for Testers
and Agile Teams_ (Addison-Wesley 2009)
Contributor to _Beautiful Testing_ (O'Reilly 2009)
http://lisacrispin.com
@lisacrispin on Twitter
http://entaggle.com/lisacrispin

-- 
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] Trying to go back to watir 1.6.2, won't install correctly

2012-02-16 Thread Željko Filipin
Hi Lisa,

comments are inline.

Željko

On Thu, Feb 16, 2012 at 6:03 PM, Lisa Crispin 
wrote:
> I uninstalled whatever Ruby that was, and installed ruby 1.8.7 instead.

Is there a reason for using ruby 1.8.7.? I would suggest that you install
ruby 1.9.3.

> However, when I try to run a script, I get an error 'require': no such
file to load -- watir (LoadError).

This usually happens when your ruby installation does not require rubygems
by default. Try adding this to the top of the file:

require "rubygems"

By the way, I wrote about that problem in the book:

https://github.com/zeljkofilipin/watirbook/blob/master/watir-in-five-minutes.md

Ž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


[wtr-general] Trying to go back to watir 1.6.2, won't install correctly

2012-02-16 Thread Lisa Crispin
I've thrown in the towel on trying to upgrade to Watir 2.0. I uninstalled
whatever Ruby that was, and installed ruby 1.8.7 instead. I installed the
ruby dev kit. I did a gem update --system. I did a gem install watir -v
1.6.2 and that appeared to work ok, at least, I didn't get any errors.
However, when I try to run a script, I get an error 'require': no such file
to load -- watir (LoadError).

I googled on that error and found another way to install, which I tried -
gem install watir-1.6.2.gem --local (I first downloaded the
watir-1.6.2.gem). But that doesn't help. I still get the same error.

I get it that it's crazy to be asking this question years after 1.6.2 was
released. I just want to be able to keep using my many Watir scripts on my
new Windows box. I'm still running them fine on my old Windows box, which
has Ruby 1.8.6 and Watir 1.6.2, but that box has to go away. If I can't get
this working, I'm just going to have to give up entirely and sacrifice many
years investment in these scripts (they were written 2004 - 2006 and I have
maintained them ever since). They are valuable to me, but I don't know what
else to try.

Y'all would probably be just as happy to not having me asking stupid
questions on this list anymore, but I thought I'd give it one more shot.

We don't use Watir for regression tests, we use Canoo WebTest and, recently
adopted, Se/Webdriver with a Geb framework. I suppose eventually we could
build up new scripts that do what our Watir scripts do in Se/Webdriver, but
since I'm the only person on the team that likes to semi-automate my manual
exploratory testing, that probably ain't gonna happen. Only I am feeling
this pain. Which teaches me a valuable lesson about making sure a team
REALLY buys into a test driver and framework before adopting it.

Do I need to go back to Ruby 1.8.6? I was advised by someone who seemed to
know that 1.8.7 would be better even with Watir 1.6.2.

Thanks,
Lisa

-- 
Lisa Crispin
Co-author with Janet Gregory, _Agile Testing: A Practical Guide for Testers
and Agile Teams_ (Addison-Wesley 2009)
Contributor to _Beautiful Testing_ (O'Reilly 2009)
http://lisacrispin.com
@lisacrispin on Twitter
http://entaggle.com/lisacrispin

-- 
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: download a file to a specific directory in IE 9

2012-02-16 Thread hillary
So manual works. 

The paths i'm entering in are valid, i see now reason why this shouldn't be 
working. Could this be something related to watir 3.0.rc2/rautomation and 
how it starts the browser?


-- 
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] Is there a wait_while_visible or wait_until_hidden or something similar?

2012-02-16 Thread Željko Filipin
On Thu, Feb 16, 2012 at 2:46 PM, RJ  wrote:
> how do I wait until this element disappears or is set to hidden again?

This could help:

http://watirwebdriver.com/waiting/

Željko
--
watir.com/book - author

-- 
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: benefits of using jquery selector

2012-02-16 Thread Anthony Hallett
also have you seen Alister Scott's:
http://watirmelon.com/2011/08/09/death-to-xpath-and-css-selectors-in-automated-tests/
and Nat Ritmeyer's reply .. gives good coverage of pros & cons of both
'native' vs xpath/css selectors

On Feb 17, 5:38 am, RJ  wrote:
> html element vs jquery selector
>
> Anybody know if there are any benefits of using one selector method
> over the other (for watir-webdriver) - if the element(s) can be
> accessed/selected either way?
> (assuming that there may be instances when only jquery selector would
> work, due to elements being hidden/disabled)
>
> Thanks

-- 
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: benefits of using jquery selector

2012-02-16 Thread Anthony Hallett
Not sure what you mean by this  ..  can you give an example of each
type?


On Feb 17, 5:38 am, RJ  wrote:
> html element vs jquery selector
>
> Anybody know if there are any benefits of using one selector method
> over the other (for watir-webdriver) - if the element(s) can be
> accessed/selected either way?
> (assuming that there may be instances when only jquery selector would
> work, due to elements being hidden/disabled)
>
> Thanks

-- 
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: Is there a wait_while_visible or wait_until_hidden or something similar?

2012-02-16 Thread Anthony Hallett
you use watir-webdriver right?

wait_while_present uses present? under the hood which checks exists?
&& visible? so this should do the trick ...

wait_while_present has a timeout parameter which defaults to 30 sec ..
is this sufficient?
wrap it in a begin rescue & see if you get a TimeoutError ..if so,
try .wait_while_present(an integer big enough for your app)

Also, browser.div(:id => 'spinner').image(:src => /
loading.gif/).wait_while_present is probably more efficient because of
the way watir-webdriver locates elements

On Feb 17, 7:46 am, RJ  wrote:
> how do I wait until this element disappears or is set to hidden again?
>
> 
>   
>      style="margin-bottom: 1px;"/>
>   
> 
>
> I already tried the following without much success:
>
>   browser.image(:src => /loading.gif/).wait_while_present
> AND/OR
>   browser.div(:id => 'spinner').image(:src => /
> loading.gif/).wait_while_present

-- 
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] Is there a wait_while_visible or wait_until_hidden or something similar?

2012-02-16 Thread RJ
how do I wait until this element disappears or is set to hidden again?


  

  




I already tried the following without much success:

  browser.image(:src => /loading.gif/).wait_while_present
AND/OR
  browser.div(:id => 'spinner').image(:src => /
loading.gif/).wait_while_present


-- 
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] benefits of using jquery selector

2012-02-16 Thread RJ
html element vs jquery selector

Anybody know if there are any benefits of using one selector method
over the other (for watir-webdriver) - if the element(s) can be
accessed/selected either way?
(assuming that there may be instances when only jquery selector would
work, due to elements being hidden/disabled)

Thanks

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