[wtr-general] Re: checkbox question

2011-04-12 Thread Chuck van der Linden
+1

On Apr 11, 5:22 am, Željko Filipin 
wrote:
> On Fri, Apr 8, 2011 at 5:49 PM, Charley Baker 
> wrote:
>
> > I like having Watir-Webdriver support here
>
> +1
>
> Željko
> --
> watir.com - community manager
> watir.com/book - author
> watirpodcast.com - host
> viaqa.mobi conference on software testing - organizer

-- 
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-11 Thread Željko Filipin
On Fri, Apr 8, 2011 at 5:49 PM, Charley Baker 
wrote:
> I like having Watir-Webdriver support here

+1

Željko
--
watir.com - community manager
watir.com/book - author
watirpodcast.com - host
viaqa.mobi conference on software testing - organizer

-- 
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  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  wrote:
> > On Thu, Apr 7, 2011 at 1:25 AM, bryan  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: 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  wrote:
> On Thu, Apr 7, 2011 at 1:25 AM, bryan  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-07 Thread Jari Bakken
On Thu, Apr 7, 2011 at 4:03 PM, Tiffany Fodor  wrote:
>
> Good luck with your Selenium project!  If you ever need Watir help,
> you know where to find us.  :)
>

I haven't created a watir-webdriver list, since I think it's fine to
discuss watir-webdriver issues here. I'd be happy to create one if you
guys think otherwise.

-- 
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-07 Thread Tiffany Fodor
Hi Bryan!

While Watir and Selenium are both moving to Webdriver to work with
various web browsers, they are completely different projects.

Alister Scott has some great blog posts that talk about Webdriver,
Watir and Selenium:

http://watirmelon.com/2010/04/10/watir-selenium-webdriver/

This is the Watir support site.  Here is the Selenium support page:

http://seleniumhq.org/support/

Good luck with your Selenium project!  If you ever need Watir help,
you know where to find us.  :)

-Tiffany



On Apr 7, 2:25 am, bryan  wrote:
> Hi,
> Newbie with selenium with watir webdriver...
>
> I have the following code( I have omitted code I suppose is less
> likely to be relevant):
>
> label = $browser.label(:text, what)
>   if label.exists?
>     if label.for.blank?
>       puts "no 'for' attribute, will try first content" if $DEBUG
>       begin
>         puts "trying checkbox"
>         return label.checkbox(:index, 1)
>       rescue
> ...
>
> And content like this
>
>  value="2">Regnskab
>
> 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?
>
> In case I can't find a solution on this I was thinking to use xpath -
> can someone give me an example of doing the above with xpath in
> selenium using watir webdriver?
>
> 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