[wtr-general] Re: Watir 1.8.1.rc1 Released

2011-04-08 Thread GJHmf
The *_no_wait methods addition certaily piqued my interested.
Click_no_wait seems to work like a charm for me, although
select_no_wait doesn't.  I have a select list that envokes a new
browser window when a value is chosen.  select_no_wait seems to try to
do its job, but alas no new window appears.

Then again, I never got this method working on Ruby 1.8.6/Watir
1.6.2.  As aways, any tips graciously received.

-- 
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: Watir 1.8.1.rc1 Released

2011-04-08 Thread Ivan Kabluchkov
Hi

Does new window appear on screen when you use select (with out
no_wait)?

On 8 апр, 14:55, GJHmf graham.harb...@webroster.net wrote:
 The *_no_wait methods addition certaily piqued my interested.
 Click_no_wait seems to work like a charm for me, although
 select_no_wait doesn't.  I have a select list that envokes a new
 browser window when a value is chosen.  select_no_wait seems to try to
 do its job, but alas no new window appears.

 Then again, I never got this method working on Ruby 1.8.6/Watir
 1.6.2.  As aways, any tips graciously received.

-- 
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] how to change value of Watir::Input?

2011-04-08 Thread bryan
Hi,

If I have an element of type Watir:Input how should I set the value -
I would like to not use textfield (unless there is someway I can
easily convert Watir:Input to a Watir:TextField and then do a set on
it.

The reason is that the field is returned by a generic function we
return that does a lot of work trying to find an element that matches
an expression, in this case it finds the correct element and returns
it but it turns out to be a Watir:Input when returned not a
Watir:TextField...

Thanks,
Bryan Rasmussen


-- 
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: Watir 1.8.1.rc1 Released

2011-04-08 Thread GJHmf
I replied to this directly to Ivan in more detail, as he added the
improvement.  To everyone else; I don't want this thread to go off-
topic, but for the record I got the same problem with select and
select_no_wait.


GJHmf

-- 
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: Watir 1.8.1.rc1 Released

2011-04-08 Thread Charley Baker
My guess is that there's some javascript event on your select list that's
not getting fired to open the new window since you mention this happens with
regular select as well as select_no_wait. Can you take a look at what's
currently being fired on the select list?

Cheers,

Charley Baker
Lead Developer, Watir, http://watir.com


On Fri, Apr 8, 2011 at 7:20 AM, GJHmf graham.harb...@webroster.net wrote:

 I replied to this directly to Ivan in more detail, as he added the
 improvement.  To everyone else; I don't want this thread to go off-
 topic, but for the record I got the same problem with select and
 select_no_wait.


 GJHmf

 --
 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: checkbox question

2011-04-08 Thread Tiffany Fodor
Sorry Bryan,

I thought you were looking for Selenium help.

Jari,

I'm fine with fielding Watir-Webdriver questions here and on Stack
Overflow.  I was sending Bryan to the Selenium group because I thought
he was asking about Selenium-Webdriver issues.  I think adding a Watir-
Webdriver site might just confuse things.

What does the group think?

Thanks!

-Tiffany

On Apr 7, 5:22 pm, Jari Bakken jari.bak...@gmail.com wrote:
 On Thu, Apr 7, 2011 at 1:25 AM, bryan rasmussen.br...@gmail.com wrote:

  When I look for the label Regnskab I find it, but when I run the
  label.checkbox(:index, 1) I get

   And I click Regnskab                                              #
  features/step_definitions/general_navigation.rb:61
       unable to locate element, using
  {:index=1, :tag_name=input, :type=checkbox}
  (Watir::Exception::UnknownObjectException)

  Any particular explanation on this?

 I think this is because watir-webdriver is 0-indexed, not 1-indexed
 like Watir. That's one of the major changes, you'll find a list of
 more here:

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

 Jari

-- 
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: checkbox question

2011-04-08 Thread Charley Baker
I like having Watir-Webdriver support here, I don't see a reason to create a
separate group. It's simply the underlying technology that's different, but
the commonalities outweigh that IMO.

-c

On Fri, Apr 8, 2011 at 8:45 AM, Tiffany Fodor tcfo...@comcast.net wrote:

 Sorry Bryan,

 I thought you were looking for Selenium help.

 Jari,

 I'm fine with fielding Watir-Webdriver questions here and on Stack
 Overflow.  I was sending Bryan to the Selenium group because I thought
 he was asking about Selenium-Webdriver issues.  I think adding a Watir-
 Webdriver site might just confuse things.

 What does the group think?

 Thanks!

 -Tiffany

 On Apr 7, 5:22 pm, Jari Bakken jari.bak...@gmail.com wrote:
  On Thu, Apr 7, 2011 at 1:25 AM, bryan rasmussen.br...@gmail.com wrote:
 
   When I look for the label Regnskab I find it, but when I run the
   label.checkbox(:index, 1) I get
 
And I click Regnskab  #
   features/step_definitions/general_navigation.rb:61
unable to locate element, using
   {:index=1, :tag_name=input, :type=checkbox}
   (Watir::Exception::UnknownObjectException)
 
   Any particular explanation on this?
 
  I think this is because watir-webdriver is 0-indexed, not 1-indexed
  like Watir. That's one of the major changes, you'll find a list of
  more here:
 
   https://github.com/jarib/watir-webdriver/wiki/Comparison-with-Watir-1.X
 
  Jari

 --
 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: Watir 1.8.1.rc1 Released

2011-04-08 Thread orde
FYI: I upgraded a couple of VMs (one XP; one Win7; both running IE8.x)
to 1.8.1.rc1 and ran a subset of existing scripts without any issues.

On Apr 8, 8:07 am, Charley Baker charley.ba...@gmail.com wrote:
 My guess is that there's some javascript event on your select list that's
 not getting fired to open the new window since you mention this happens with
 regular select as well as select_no_wait. Can you take a look at what's
 currently being fired on the select list?

 Cheers,

 Charley Baker
 Lead Developer, Watir,http://watir.com







 On Fri, Apr 8, 2011 at 7:20 AM, GJHmf graham.harb...@webroster.net wrote:
  I replied to this directly to Ivan in more detail, as he added the
  improvement.  To everyone else; I don't want this thread to go off-
  topic, but for the record I got the same problem with select and
  select_no_wait.

  GJHmf

  --
  Before posting, please readhttp://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: how to change value of Watir::Input?

2011-04-08 Thread Tiffany Fodor
Hey Bryan!

I'm not sure I understand your question, but I'll give it a shot.  You
have an input element and you're not sure what type of input it will
be because it's returned by a method that matches one of the element's
parameters to a regex?

To set a value in an element, you need to know what type it is.  There
are several types of elements that accept input, so you may need to
write some conditional statements to figure out what your element is.

For example, if your element's id is a regex looks like this: /
my_text/, and you expect to get a text_field, select_list, or a
file_field:

if browser.select_list(:id, /my_text/).exists?
  browser.select_list(:id, /my_text/).select('The option I want to
set')
elsif browser.text_field(:id, /my_text/).exists?
  browser.text_field(:id, /my_text/).set('The text I want to set')
elsif browser.file_field(:id, /my_text/).exists?
  browser.file_field(:id, /my_text/).set(//path_to_my_file)
end

If I didn't understand your question correctly, please provide more
information in the form of your Watir code or html for the app you're
testing.

Hope this helps!

-Tiffany

On Apr 8, 4:54 am, bryan rasmussen.br...@gmail.com wrote:
 Hi,

 If I have an element of type Watir:Input how should I set the value -
 I would like to not use textfield (unless there is someway I can
 easily convert Watir:Input to a Watir:TextField and then do a set on
 it.

 The reason is that the field is returned by a generic function we
 return that does a lot of work trying to find an element that matches
 an expression, in this case it finds the correct element and returns
 it but it turns out to be a Watir:Input when returned not a
 Watir:TextField...

 Thanks,
 Bryan Rasmussen

-- 
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: Rubygems 1.7.2 is out: for those with invalid value for @cert_chain issue

2011-04-08 Thread Tiffany Fodor
Thanks Charley!

I was getting lots of warning messages on a couple of my PCs about
this, but didn't have time to troubleshoot them.  Since everything
still worked, I decided to wait until I had more time to go down that
rabbit hole.  I upgraded one of them and it's all better now - thanks
for saving me several hours of trying to figure out what the problem
was!

-Tiffany

On Apr 5, 5:21 pm, Charley Baker charley.ba...@gmail.com wrote:
 Announcement is 
 here:http://rubyforge.org/pipermail/rubygems-developers/2011-April/006373

 Charley Baker
 Lead Developer, Watir,http://watir.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