Re: [wtr-general] Connection Refused

2012-01-26 Thread Jari Bakken
The partial stack trace is not helpful, since it only shows stack
frames from Ruby's stdlib. Usually "connection refused" errors means
the browser process has died.

Den 26. jan. 2012 kl. 23:13 skrev "neorubya...@yahoo.com"
:

> Folks, I am using watir+cucumber in my tests and for each feature I am
> reusing the instance of the browser, that is I create the instance of
> @@browser = Watir::Browser.new and then reuse this through out my
> tests, I am using watir-webdriver, my tests where running fine till
> now, I just added another scenario and I consistently get the below
> error message:
>
> Connection refused - connect(2) (Errno::ECONNREFUSED)
>  /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/
> ruby/1.8/net/http.rb:560:in `initialize'
>  /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/
> ruby/1.8/net/http.rb:560:in `open'
>  /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/
> ruby/1.8/net/http.rb:560:in `connect'
>  /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/
> ruby/1.8/timeout.rb:53:in `timeout'
>  /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/
> ruby/1.8/timeout.rb:93:in `timeout'
>  /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/
> ruby/1.8/net/http.rb:560:in `connect'
>  /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/
> ruby/1.8/net/http.rb:553:in `do_start'
>  /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/
> ruby/1.8/net/http.rb:542:in `start'
>  /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/
> ruby/1.8/net/http.rb:1035:in `request'
>
> I am not using the gird but running this on my local machine, any help
> is much appreciated.
>
> --
> 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] problem with radio button after upgrade

2012-01-26 Thread bis
http://watir.com/examples/

:)

On Thu, Jan 26, 2012 at 6:40 PM, Željko Filipin wrote:

> On Thu, Jan 26, 2012 at 5:09 PM, Lisa Crispin 
> wrote:
> > Then I realized this page I found that looks like such nice doc is for
> the old Watir. Does that not exist for Watir 2? This is *really* what I
> need.
>
> Did you see this?
>
> http://rubydoc.info/gems/watir/frames
> http://rubydoc.info/gems/watir-webdriver/frames
>
>
> > Something that shows all the possibilities (eg., can use name, id, value
> or whatever), and lots of examples.
>
> I started writing something like that in the book:
>
> https://github.com/zeljkofilipin/watirbook/blob/master/elements/link.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
>

-- 
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] problem with radio button after upgrade

2012-01-26 Thread Željko Filipin
On Thu, Jan 26, 2012 at 5:09 PM, Lisa Crispin 
wrote:
> Then I realized this page I found that looks like such nice doc is for
the old Watir. Does that not exist for Watir 2? This is *really* what I
need.

Did you see this?

http://rubydoc.info/gems/watir/frames
http://rubydoc.info/gems/watir-webdriver/frames

> Something that shows all the possibilities (eg., can use name, id, value
or whatever), and lots of examples.

I started writing something like that in the book:

https://github.com/zeljkofilipin/watirbook/blob/master/elements/link.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


Re: [wtr-general] Testing a Table being populated by a data base

2012-01-26 Thread bis
well seeing as how that looks like code for a select

@@browser.select_list(:id => "fselectuser").select "12345"

but thats just going off of the html that was there and barely reading the
email

http://watir.com/examples/

On Sat, Jan 14, 2012 at 7:42 AM, Joe Fleck  wrote:

> Hi Vindev,
>
> You might try
>
> @@browser(:text,'12345').click
>
> Regards,
> Joe
>
> Sent from my iPad
>
> On Jan 12, 2012, at 10:41 AM, Vindev  wrote:
>
> > I am trying to test a table on a webpage that is benig populated via
> > database.  The webpage is done in java:
> >
> > 
> >--
> > Create New User --
> > > option>
> >
> > 12345
> >
> > 1234567
> >
> >
> > my code right now is @@browser.table(:value, "12345")  this works
> > however, i need to be able to click on the user 12345 so that their
> > information gets populated in a form.  @@browser.table(:value,
> > "12345").click is invalid. What do I need to do?
> >
> > --
> > 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] Extend watir

2012-01-26 Thread bis
https://github.com/90kts/watirgrid


On Sun, Jan 22, 2012 at 4:55 PM, cody cody wrote:

> Please Excuse me since I am a ruby novice, but I wanted to create a
> simple ruby class (possibly a gem) which will allow you to run
> parallel watir-webdriver tests with the different browsers. So
> essentially you could run the same test with firefox and ie at the
> same time. But how do you actually extend the watir class to inherit
> its methods. For example I tried the following:
>
> module Watir
>
> class test
>
>  end
>
>  end
>
> Even attempting to run this just gives me errors, So how can I extend
> it to inherit its methods correctly? 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
>

-- 
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] problem with radio button after upgrade

2012-01-26 Thread Lisa Crispin
The good news is, the syntax you gave me does work. Thank you!

Then I realized this page I found that looks like such nice doc is for the
old Watir. Does that not exist for Watir 2? This is *really* what I need.
Something that shows all the possibilities (eg., can use name, id, value or
whatever), and lots of examples.
thanks
Lisa

On Thu, Jan 26, 2012 at 4:03 PM, Lisa Crispin wrote:

> OK, and now I see in your email the link to this http://watir.com/support.
> So I just went there and did a search 'watir radio', and finally found this
> page, which is what I was looking for:
>
> http://wtr.rubyforge.org/rdoc/1.6.5/classes/Watir/Container.html
>
> Thank you!
> -- Lisa
>
>
> On Thu, Jan 26, 2012 at 3:13 PM, Željko Filipin 
> wrote:
>
>> On Thu, Jan 26, 2012 at 4:08 PM, Lisa Crispin 
>> wrote:
>> > ie.radio(:name, 'rst', '65546').set
>>
>> The new api is:
>>
>> ie.radio(:name => "rst", :value => "65546").set
>>
>> Ž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] problem with radio button after upgrade

2012-01-26 Thread Lisa Crispin
OK, and now I see in your email the link to this http://watir.com/support.
So I just went there and did a search 'watir radio', and finally found this
page, which is what I was looking for:

http://wtr.rubyforge.org/rdoc/1.6.5/classes/Watir/Container.html

Thank you!
-- Lisa

On Thu, Jan 26, 2012 at 3:13 PM, Željko Filipin wrote:

> On Thu, Jan 26, 2012 at 4:08 PM, Lisa Crispin 
> wrote:
> > ie.radio(:name, 'rst', '65546').set
>
> The new api is:
>
> ie.radio(:name => "rst", :value => "65546").set
>
> Ž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] Grab text from one site and find/access it on another site

2012-01-26 Thread Rahul Sharma
You have partially answered your own question except the fact that the variable 
has nothing to do with the site. Just define it in your code an store the 
order_id in it. Open the second site in a new instance of the browser and 
search for the order using the value from the variable :)
On 25 Jan 2012, at 15:35, Jim Henry wrote:

> I have run into a problem that I am unable to resolve on my own.  We
> are creating some content on one of your sites (site 1) which persists
> to another site (site 2).  We then need to log into site 2, find the
> content we created in site 1 and then continue the process on site 2.
> 
> Does anyone know how I can accomplish this task.  I would assume we
> would save some of the text as a variable on site 1 and then somehow
> find it on site 2, but I am not sure.
> 
> Here is an example of the flow:
> 
> 1. An order is created on site 1 (an order id is created)
> 2. Log into site 2 and find the order id
> 3. Click the order id on site 2 and continue adding content to the
> order
> 
> Thanks in advance.
> 
> -- 
> 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

Regards,
Rahul Sharma

-- 
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] Differences between watir and watir-webdriver

2012-01-26 Thread Željko Filipin
On Thu, Jan 19, 2012 at 9:52 PM, Bob Jones  wrote:
> I am looking into the differences between watir and watir-webdriver.

I think this is all we have, but I am not sure how up to date it is:

https://github.com/watir/watir-webdriver/wiki/Comparison-with-Watir-1.X

Ž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


Re: [wtr-general] problem with radio button after upgrade

2012-01-26 Thread Željko Filipin
On Thu, Jan 26, 2012 at 4:08 PM, Lisa Crispin 
wrote:
> ie.radio(:name, 'rst', '65546').set

The new api is:

ie.radio(:name => "rst", :value => "65546").set

Ž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] problem with radio button after upgrade

2012-01-26 Thread Željko Filipin
On Thu, Jan 26, 2012 at 4:08 PM, Lisa Crispin 
wrote:
> 1. Why am I getting this error?

The api changed a bit.

> 2. Is there ONE definitive place where Watir commands (or whatever you
call them) are documented?

http://rubydoc.info/gems/watir/frames
http://rubydoc.info/gems/watir-webdriver/frames

> 3. Is there a side-by-side comparison of the old Watir and the new Watir?
I saw some links that were pointing to github, but when I clicked them I
got 404.

Here is the new link, but I am not sure how up to date the page is:

https://github.com/watir/watir-webdriver/wiki/Comparison-with-Watir-1.X

Ž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] Testing a Table being populated by a data base

2012-01-26 Thread Joe Fleck
Hi Vindev,

You might try 

@@browser(:text,'12345').click

Regards,
Joe

Sent from my iPad

On Jan 12, 2012, at 10:41 AM, Vindev  wrote:

> I am trying to test a table on a webpage that is benig populated via
> database.  The webpage is done in java:
> 
> 
>--
> Create New User --
> option>
> 
> 12345
> 
> 1234567
> 
> 
> my code right now is @@browser.table(:value, "12345")  this works
> however, i need to be able to click on the user 12345 so that their
> information gets populated in a form.  @@browser.table(:value,
> "12345").click is invalid. What do I need to do?
> 
> -- 
> 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: no such file to load -- watir/ie (LoadError)

2012-01-26 Thread suren
Hi There,

I has a similar problem today and when i dug down deeper it was the
nokogiri gem that was causing the underlying issue...!

I resolved it by installing the correct nokogiri gem for my platform
i.e. nokogiri-1.5.0-x86-mingw32.gem.

its all working fine now.

Suren

On Dec 29 2011, 12:30 pm, mdwin01  wrote:
> Thank you all, I got this resolved.  I compared versions of everything
> btw the 2 computers, and since they had same versions of ruby and
> watir, I uninstalled all extra gems and reinstalled watir (along with
> the 15 or so gems it uses) on the computer that was not functional.  I
> could not find the specific culprit, but now it all works...
>
> -Mark

-- 
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: Not able to select table data inside an table which is having no unique identity.

2012-01-26 Thread dd_qa
Check the links on how to identify elements on this post.
http://wiki.openqa.org/display/WTR/Ways+Available+To+Identify+HTML+Element

The combobox has a style=Display:none.  Use firebug to figure out how
to enable/display the combobox(i.e. "hover", "onmouseover", etc.) and
assert the table is displayed before accessing the data in it.

ie.contains_text("Table Name")  
http://wiki.openqa.org/display/WTR/Validating+Test+Results






On Jan 17, 6:42 pm, Bhavesh  wrote:
> Hi,
>
> I have table, inside it i have table row, which interm have data
> [text] as Summary and Detail.
>
> Source code from IE is :
>
>  border=0>
> 
>  z.inited="true">
> 
>  style="WIDTH: 115px">Name:
> 
>  id=z_f2_vh style="WIDTH: 450px" maxLength=100
> z.type="zul.widget.Txbox">
> 
>  style="WIDTH: 115px">(Limit 100 characters)
>  z.inited="true">
> 
>  style="WIDTH: 115px">Type:
> 
>  id=z_f2_4i z.type="zul.cb.Cmbox" z.combo="true"> class="comboboxinp readonly" id=z_f2_4i!real readOnly value=Summary
> autocomplete="off"> src="https://vm-bhaveshok2.kazeon.local/reports/zkau/web/zul/img/
> combobtn.gif">
> 
>
> 
> 
> 
> 
> Summary
> 
> 
> Detail
>
> Im looking at last 8 lines.
>
> There is no name, class for this table.  only there is dynamic id
> generated.
>
> I want to select text "Detail: out of this combobox.
>
> Can someone help how can i do it.
>
> Im using watir webdriver.
>
> I tried like :
>
> $ie.table(:class, "grid-btable").cell(:class => "item", :text =>
> reportType).click
>
> $ie.input(:value, "Summary").select(reportType)
>
> $ie.input(:value, "Summary").select(reportType)
>
> $ie.table(:class, "grid-btable").div(:class, "comboboxpp").tr(:class,
> "item").td(:text, "Detail").click
>
>  $ie.table(:class, "grid-btable").div(:class, "comboboxpp").td(:text,
> 'Detail').click
>
> $ie.div(:class, "comboboxpp").tr(:class, "item").td(:text,
> "Detail").click
>
> But all failed with some or other error like not able to find element
> etc.
>
> Bhavesh

-- 
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] Extend watir

2012-01-26 Thread cody cody
Please Excuse me since I am a ruby novice, but I wanted to create a
simple ruby class (possibly a gem) which will allow you to run
parallel watir-webdriver tests with the different browsers. So
essentially you could run the same test with firefox and ie at the
same time. But how do you actually extend the watir class to inherit
its methods. For example I tried the following:

module Watir

class test

  end

  end

Even attempting to run this just gives me errors, So how can I extend
it to inherit its methods correctly? 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] my recent posting

2012-01-26 Thread Eva Cote
Hello,

I just posted a question in the watir group. I figured out a solution.
Please remove my post. I can't seem to find it. Great forum.

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] Grab text from one site and find/access it on another site

2012-01-26 Thread Jim Henry
I have run into a problem that I am unable to resolve on my own.  We
are creating some content on one of your sites (site 1) which persists
to another site (site 2).  We then need to log into site 2, find the
content we created in site 1 and then continue the process on site 2.

Does anyone know how I can accomplish this task.  I would assume we
would save some of the text as a variable on site 1 and then somehow
find it on site 2, but I am not sure.

Here is an example of the flow:

1. An order is created on site 1 (an order id is created)
2. Log into site 2 and find the order id
3. Click the order id on site 2 and continue adding content to the
order

Thanks in advance.

-- 
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] Cannot click a div

2012-01-26 Thread Mat.SRS
Hi everyone,

I'm working with watir in Safari -MAC OS- and I'm having some problems
when I try to click a div (Login button) of a web page which has
component one (asp net).
This is the code:







 Log in 



And this is what I'm trying to do with watir:

require "rubygems"
require "safariwatir"
browser = Watir::Safari.new
browser.goto test_site
browser.div(:id,
"ctl00_ContentPlaceholderMiddle_LogOn_LogOnView_CntPnl_LogOnButton").click

When I do that, the button flashes but I'm not led to the related
page.

I have also tried to use firewatir as follows:

require "rubygems"
require "firewatir"
require "safariwatir"
browser = Watir::Safari.new
browser.goto test_site
browser.div(:id,
"ctl00_ContentPlaceholderMiddle_LogOn_LogOnView_CntPnl_LogOnButton").fireEvent("onclick")

but the response was this error message:

/Library/Ruby/Gems/1.8/gems/safariwatir-0.4.0/lib/safariwatir/
locators.rb:87:in `method_missing': undefined method `fireEvent' for
# (NoMethodError)

I will appreciate any help with this :) regards.

-- 
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] Differences between watir and watir-webdriver

2012-01-26 Thread Bob Jones
Hi all,

I am looking into the differences between watir and watir-webdriver.
I see that the are some differences, such as the attach is suppported
in watir and not in watir-webdriver (BTW, this appears to be a deal
breaker issue), but what other differences are there.  For example,
while working with the table object, in watir, I can use .row_value.
Can't in watir-webdriver.  When I search for an API for watir-
webdriver, watir API come up.  Thanks for any help you can
offerBob

BTW, (I read the thread on the tightness of the coupling between watir
and watir-webdriver.  That sort of went in different direction than I
am looking for.

-- 
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] Connection Refused

2012-01-26 Thread neorubya...@yahoo.com
Folks, I am using watir+cucumber in my tests and for each feature I am
reusing the instance of the browser, that is I create the instance of
@@browser = Watir::Browser.new and then reuse this through out my
tests, I am using watir-webdriver, my tests where running fine till
now, I just added another scenario and I consistently get the below
error message:

Connection refused - connect(2) (Errno::ECONNREFUSED)
  /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/
ruby/1.8/net/http.rb:560:in `initialize'
  /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/
ruby/1.8/net/http.rb:560:in `open'
  /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/
ruby/1.8/net/http.rb:560:in `connect'
  /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/
ruby/1.8/timeout.rb:53:in `timeout'
  /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/
ruby/1.8/timeout.rb:93:in `timeout'
  /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/
ruby/1.8/net/http.rb:560:in `connect'
  /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/
ruby/1.8/net/http.rb:553:in `do_start'
  /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/
ruby/1.8/net/http.rb:542:in `start'
  /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/
ruby/1.8/net/http.rb:1035:in `request'

I am not using the gird but running this on my local machine, any help
is much appreciated.

-- 
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] Unable to access this image to click

2012-01-26 Thread Eva Cote
Hello,

I'm having issues getting to this edit image that acts like a button.
I would appreciate any help. I'm stuck. Thanks.

here is what is displayed for this image in IE dev tool bar...
 
 

This is what I tried to use to access... It's in the mainFrame.
77 $iee.frame(:name,"mainFrame").span(:class,
"NavBody").fire_event("onmouseout")
  sleep (1)
78 $iee.frame(:name,"mainFrame").image(:alt, "Edit").click
79  $iee.frame(:name,"mainFrame").image(:src,"http://something/
Edit_Home.gif")

It fails on the line 77. Unable to locate element, using :class,
"NavBody"

I've tried to access the image directly...
78 $iee.frame(:name,"mainFrame").image(:alt, "Edit").click
79  $iee.frame(:name,"mainFrame").image(:src,"http://something/
Edit_Home.gif")

Results, nothing is clicked.

-- 
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] problem with radio button after upgrade

2012-01-26 Thread Lisa Crispin
I'm trying to get all our zillions of Ruby/Watir/Test::Unit scripts working
in the latest Watir version.

Right away I ran into this problem. We have an old legacy page that has
several radio buttons with the same name. So I can only select them by
value. Here's the html:



Here is the Watir code (do you call this code?) that has worked for 8 years:

ie.radio(:name, 'rst', '65546').set

When I run the script, I get this error:

ArgumentError: wrong number of arguments (3 for 2)
(eval):1:in `radio'

I've Googled the documentation and it looks to me like what we have should
still work. However, I cannot find a specific example to use both name and
value. Still, the documentation indicates that the value is supported.

I have two questions:
1. Why am I getting this error?
2. Is there ONE definitive place where Watir commands (or whatever you call
them) are documented?
3. Is there a side-by-side comparison of the old Watir and the new Watir? I
saw some links that were pointing to github, but when I clicked them I got
404.

If it's going to be too hard to upgrade, I can just stay on the old version
forever, but I would really like to use webdriver. We are now using
webdriver with Selenium and Geb, but I'd like to use it with Watir as well.

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


Re: [wtr-general] Error with brand new install

2012-01-26 Thread Željko Filipin
Lisa,

if the warning message is a problem, you should post at
wtr-developm...@rubyforge.org, developers will know more on how to fix it.

Ž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] Error with brand new install

2012-01-26 Thread Lisa Crispin
Hi Željko

On Thu, Jan 26, 2012 at 10:16 AM, Željko Filipin
wrote:

> On Thu, Jan 26, 2012 at 11:10 AM, Lisa Crispin 
> wrote:
> > I'm doing a brand new install of Watir on Windoze 7, following the
> instructions on the site.
>
> This instructions?
>
>
> https://github.com/zeljkofilipin/watirbook/blob/master/installation/windows.md
>
> I have updated the instructions there, but I did not have the time to
> publish a new version of the book.
>
Yes, that's the page I used


>
> > I'm getting this error when I do the test recommended in the
> instructions:
> > irb(main):002:0> browser = Watir::Browser.new
> >
> C:/Ruby193/lib/ruby/gems/1.9.1/gems/windows-api-0.4.0/lib/windows/api.rb:4:
> Use
> > RbConfig instead of obsolete and deprecated Config.
>
> Is this just a warning message? (Looks like it comes from windows-api
> gem.) Does the browser open?
>

It's just a warning message. It refers to a Config:: something or other,
but I don't have that anywhere in my Ruby scripts. I get this warning any
time I run a script, too.


>
> > The person who posted the problem says "It all went down to ffi gem".
>
> There was a problem with one version of ffi gem on Windows, but I think
> that is solved now. Did you install DevKit?
>

Yes, at least, I followed all those instructions and it seemed to work


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

Thanks!

-- 
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: Upgrading anxiety

2012-01-26 Thread lisa.cris...@gmail.com
Thanks for this info, I am finally now going to do this!
-- Lisa

On Dec 29 2011, 7:57 pm, Chuck van der Linden 
wrote:
> I've been doing a bunch of this sort of work at my current job so I
> have the following advice.  (something else I should do a blog posting
> about)
>
> Step zero, decide if you are going to make the scripts try to run
> under both the newer Watir and Watir-Webdriver, or just WW.  If the
> former I suggest a global $webdriver variable be used to wrap some
> code to be disabled, or create if/else wrappings around the few things
> that are entirely different  I'm using a YAML config file to set which
> driver and browser to use, etc
>
> Step 1  if running on Windows install PIK  it allows you to have
> multiple versions of Ruby installed and each can have it's own set of
> gems etc.  For Mac get RVM it's similar only better.    This allows
> you to use a single machine and flip it instantly between setups
>
> Step 2  source control is your friend (you know that already I'll
> bet)  so will be search and replace
>
> Step 3 For updating the scripts I do the following (I've made notes as
> I went along, this is what I found so far)
>
> part 1 the basic updates that (should) work with both Watir 2.0 and
> WW:
> a) search for any instance of :index  if the value is 1, remove it
> entirely (that's the default if nothing is specified), if the value is>1 
> reduce it by one.
>
> b) Replace: $ie or $ff  with $browser or just $b  (depending on your
> preference/style)
> c) Replace:  browser.text_contains  with  browser.text.include?
> d) Replace:  text_field.verify_contains("dfadf")  with
> text_field.text.include?("dfadf')
> e) Replace:  select_list.includes?  with  select_list.include?
> (singular)
> f) Replace:  :url  with  :href   ( !! in most element 'how' but NOT
> for window switching see below)
> j) .isSet  with .set?
>
> Part 2  stuff from Watir you no longer need.  Some stuff you had
> before is not necessary in webdriver
> remove/comment out  or disable  via wrapping with  "unless
> $webdriver"  if trying to be compatible with both Watir and WW)
>
> a) .document (anything)
> b) .document.scrollintoview  (is automagical in WW)
>
> Part 3   Entirely different logic.  again you can either use if/else
> based on 'if $webdriver'  or just switch from the old to the new if
> you don't want to be cross compatible
>
> a) Window/Browser changing stuff
>
> Watir: Watir::IE.Attach(how, what) => WW: browser.window(how,what),use
>
> Watir: browser.close  => WW: browser.window.close
>
> b) Javascript popup stuff (seehttp://stackoverflow.com/a/8172888/409820
> )
>
> Watir: some _no_wait  method followed by
> browser.javascript_dialog.button.click
> WW: wrap one of the following around the action that causes popup
>
>     browser.alert do
>       #cause of alert popup
>     end #=> "the alert message"
>
>     browser.confirm(true) do
>       #cause of confirm (set 'true' above to false to not confirm)
>     end #=> "the confirm message"
>
>     browser.prompt("hello") do
>       #cause of prompt.
>       #replace 'hello' above with user input in response to prompt
>     end #=> { :message => "foo", :default_value => "bar" }
>
> If you find more (or if anyone else wants to add to the list) please
> feel free to update this and repost. (or add to the watir wiki)
>
> On Dec 29, 2:34 pm, Lisa Crispin  wrote:
>
>
>
>
>
>
>
> > We have Watir 1.6.2 and Ruby 1.8.6. We have MANY Watir/Test/Unit scripts
> > which we (well, I) mainly use to help with exploratory testing, and to
> > verify releases. I can't live without these scripts, so I don't want to
> > break them. At the same time, I want to try the latest Watir and Webdriver
> > to see if it correctly interprets the JS that our new Dojo code has - the
> > version of Watir we have can't cope with it, and Canoo WebTest/HtmlUnit
> > also cannot correctly interpret it.
>
> > I perused the latest install instructions and info about the later Watir
> > releases, and it sounds like our older Watir scripts aren't going to work
> > with the later version? Is this true? How much effort is required to fix
> > them? Is there a central location with this information that I just haven't
> > found yet?
>
> > If I install the latest Ruby and Watir/WebDriver, and our scripts don't
> > work, can I back up to the old versions again?
>
> > I only spend about 10% of my time doing any sort of coding, so though this
> > might all be really obvious to y'all, it is something quite challenging and
> > scary for me. I would hate to abandon Watir and the excellent scripts we
> > have, but I don't get any support from my team on this. They are keen to
> > try Selenium.
>
> > 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 Twitterhttp://entaggle.com/lisacrispin

-- 
Before post

Re: [wtr-general] Error with brand new install

2012-01-26 Thread Željko Filipin
On Thu, Jan 26, 2012 at 11:10 AM, Lisa Crispin 
wrote:
> I'm doing a brand new install of Watir on Windoze 7, following the
instructions on the site.

This instructions?

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

I have updated the instructions there, but I did not have the time to
publish a new version of the book.

> I'm getting this error when I do the test recommended in the instructions:
> irb(main):002:0> browser = Watir::Browser.new
>
C:/Ruby193/lib/ruby/gems/1.9.1/gems/windows-api-0.4.0/lib/windows/api.rb:4:
Use
> RbConfig instead of obsolete and deprecated Config.

Is this just a warning message? (Looks like it comes from windows-api gem.)
Does the browser open?

> The person who posted the problem says "It all went down to ffi gem".

There was a problem with one version of ffi gem on Windows, but I think
that is solved now. Did you install DevKit?

Ž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] Error with brand new install

2012-01-26 Thread Lisa Crispin
I'm doing a brand new install of Watir on Windoze 7, following the
instructions on the site.

I'm getting this error when I do the test recommended in the instructions:
irb(main):002:0> browser = Watir::Browser.new
C:/Ruby193/lib/ruby/gems/1.9.1/gems/windows-api-0.4.0/lib/windows/api.rb:4:
Use
RbConfig instead of obsolete and deprecated Config.

I found someone posted the same problem here:
http://stackoverflow.com/questions/8337338/watir-does-not-work-with-ruby-1-9-3

Zeljko says "It works for me" and shows his versions of everything. I have
the exact same versions.

The person who posted the problem says "It all went down to ffi gem".

I have no idea what that is, but I looked it up and installed it with 'gem
install ffi'. That didn't help my problem.

I've browsed around on the mailing list and google but haven't found the
solution.

Please help.
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