Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
FireWatir bug/anomaly
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  8 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Chris  
View profile  
 More options Apr 5, 12:07 am
From: Chris <christopher.mcma...@gmail.com>
Date: Sat, 4 Apr 2009 21:07:04 -0700 (PDT)
Local: Sun, Apr 5 2009 12:07 am
Subject: FireWatir bug/anomaly

This snippet show the issue on FF3/Mac.  select_list on craigslist
seems to be invisible.  FWIW, Selenium IDE can address the select_list
with no problem

require 'rubygems'
require 'firewatir'

@browser = Watir::Browser.new
@browser.goto("http://newyork.craigslist.org/jjj/")

#CAN'T ADDRESS BY INDEX
@browser.select_list(:index,1).set("software jobs")
#CAN'T ADDRESS BY ID
@browser.select_list(:id,"cAbb").set("software jobs")
#CAN'T SET THE select_list VIA 'value=foo'
@browser.select_list(:id,"cAbb").set("sof")

FireWatir generates no error for any of these calls.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jarmo Pertman  
View profile  
 More options Apr 11, 7:07 pm
From: Jarmo Pertman <Jarm...@gmail.com>
Date: Sat, 11 Apr 2009 16:07:12 -0700 (PDT)
Local: Sat, Apr 11 2009 7:07 pm
Subject: Re: FireWatir bug/anomaly
Try to print out html for that select_list to make sure that you are
really dealing with the correct select_list and there aren't any
hidden ones or whatsoever. Or try just plain old .flash method to see
if correct list is flashing :)

Jarmo

On Apr 5, 7:07 am, Chris <christopher.mcma...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Alex Collins  
View profile  
 More options Apr 12, 6:02 am
From: Alex Collins <a.j.collins...@gmail.com>
Date: Sun, 12 Apr 2009 11:02:56 +0100
Local: Sun, Apr 12 2009 6:02 am
Subject: Re: [wtr-general] Re: FireWatir bug/anomaly
I've just had a quick look, also on FF3/Mac.

The issue is not that the select_list element is invisible - you can  
address it correctly as show by calling:
@browser.select_lists
or
@browser.select_list(:id, 'cAbb')

Calling the "methods" method on the element reveals that the "set"  
method you are calling is not present. I was surprised to see that  
this method exists - I've always used the "select" method, which works  
fine. The RDoc reveals that set should be an alias for select.

I would suggest using the select method for the time being:
@browser.select_list(:id,"cAbb").select("software jobs")

However, if you wish to use the set method, add the following code to  
your firewatir/htmlelements.rb file in the SelectList class beneath  
the select method's definition:
alias :set :select

Best wishes,

Alex

On 12 Apr 2009, at 00:07, Jarmo Pertman wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Chris McMahon  
View profile  
 More options Apr 12, 10:16 am
From: Chris McMahon <christopher.mcma...@gmail.com>
Date: Sun, 12 Apr 2009 07:16:09 -0700 (PDT)
Local: Sun, Apr 12 2009 10:16 am
Subject: Re: FireWatir bug/anomaly

> Calling the "methods" method on the element reveals that the "set"  
> method you are calling is not present. I was surprised to see that  
> this method exists - I've always used the "select" method, which works  
> fine. The RDoc reveals that set should be an alias for select.

> I would suggest using the select method for the time being:
> @browser.select_list(:id,"cAbb").select("software jobs")

> However, if you wish to use the set method, add the following code to  
> your firewatir/htmlelements.rb file in the SelectList class beneath  
> the select method's definition:
> alias :set :select

Alex, thanks very much.  I should have thought of some of that
myself-- it has been some time since I've worked closely with Watir.

Seems like I should have gotten a NoMethodError trying what I did, but
I'm glad that there *is* a right method.

-Chris


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Paul Rogers  
View profile  
 More options Apr 12, 10:20 pm
From: Paul Rogers <paul.rog...@shaw.ca>
Date: Sun, 12 Apr 2009 20:20:25 -0600
Local: Sun, Apr 12 2009 10:20 pm
Subject: Re: [wtr-general] Re: FireWatir bug/anomaly

there is some functionality in firewatir ( at least the version that I had
been using) that doesnt generate exceptions when there is a javascript
exception. Id fixed this some where once ( probably in a local copy of
firewatir) , but I guess the code got lost

Paul

On Sun, Apr 12, 2009 at 8:16 AM, Chris McMahon <


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Angrez Singh  
View profile  
 More options Apr 13, 3:04 am
From: Angrez Singh <ang...@gmail.com>
Date: Mon, 13 Apr 2009 12:34:46 +0530
Local: Mon, Apr 13 2009 3:04 am
Subject: Re: [wtr-general] Re: FireWatir bug/anomaly

Can somebody put this in JIRA so that we can make Firewatir/Watir more
compatible?

- Angrez

On Sun, Apr 12, 2009 at 3:32 PM, Alex Collins <a.j.collins...@gmail.com>wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Bret Pettichord  
View profile  
 More options Apr 13, 2:59 pm
From: Bret Pettichord <b...@pettichord.com>
Date: Mon, 13 Apr 2009 13:59:53 -0500
Local: Mon, Apr 13 2009 2:59 pm
Subject: Re: [wtr-general] Re: FireWatir bug/anomaly
I think there are 2 bugs here.

1. Firewatir does not issue an error when users use undefined methods.

2. SelectList#set needs to be defined as an alias for SelectList#select
(as it is in IE-Watir).

Bret

--
Bret Pettichord
CTO, WatirCraft LLC, www.watircraft.com
Lead Developer, Watir, www.watir.com
Blog, www.io.com/~wazmo/blog
Twitter, www.twitter.com/bpettichord

Watir Training: Portland/Beaverton April 16-17
www.watircraft.com/training


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Alex Collins  
View profile  
 More options Apr 13, 4:21 pm
From: Alex Collins <a.j.collins...@gmail.com>
Date: Mon, 13 Apr 2009 21:21:36 +0100
Local: Mon, Apr 13 2009 4:21 pm
Subject: Re: [wtr-general] Re: FireWatir bug/anomaly

On 13 Apr 2009, at 19:59, Bret Pettichord wrote:

> I think there are 2 bugs here.

> 1. Firewatir does not issue an error when users use undefined methods.

Agree with this. I had a quick look but my trivial catch-all patch  
breaks various tests. I'll have a look tomorrow at fitting this into  
element.rb's method_missing call.

> 2. SelectList#set needs to be defined as an alias for  
> SelectList#select
> (as it is in IE-Watir).

I checked this morning - this is already fixed in the firewatir on  
GitHub in Bret's Watir repository.

Alex


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google