Google Groups Home
Help | Sign in
How can I wait for the element with firewatir?
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
  3 messages - Collapse all
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
Palm fan  
View profile
 More options Jul 18, 1:42 am
From: Palm fan <lijun.t...@gmail.com>
Date: Thu, 17 Jul 2008 22:42:51 -0700 (PDT)
Local: Fri, Jul 18 2008 1:42 am
Subject: How can I wait for the element with firewatir?
Hi, guys

I use watir to wait for some elements like this:
{{{
sleep(3) until ie.frame(:id, "frame_main").exist?  #Wait for the frame

sleep (3) until ie.frame(:id, "frame_main").div(:id,
"menu_bar").exist? #Then wait for the div under the 'frame_main'

}}}

These run smoothly in IE with watir, however, it doesn't work well
with Firewatir in Fx 2:

c:/ruby/lib/ruby/gems/1.8/gems/firewatir-1.2.0/./MozillaBaseElement.rb:
866:in `assert_exists': Unable to locate object, using id and menu_bar
(FireWatir::Exception::UnknownObjectException)
        from c:/ruby/lib/ruby/gems/1.8/gems/firewatir-1.2.0/./
MozillaBaseElement.rb:1310:in `method_missing'

Unable to locate the div object. Could anyone kindly to tell me how to
fix it? It has confused me for hours. Thanks a lot:-)


    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 Jul 18, 2:13 am
From: "Angrez Singh" <ang...@gmail.com>
Date: Fri, 18 Jul 2008 11:43:28 +0530
Local: Fri, Jul 18 2008 2:13 am
Subject: Re: How can I wait for the element with firewatir?

In Firewatir we through exception if we are unable to locate object. Need to
change this to be more consistent with Watir.

- Angrez


    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.
Palm fan  
View profile
 More options Jul 18, 3:27 am
From: Palm fan <lijun.t...@gmail.com>
Date: Fri, 18 Jul 2008 00:27:07 -0700 (PDT)
Local: Fri, Jul 18 2008 3:27 am
Subject: Re: How can I wait for the element with firewatir?
Solved:-) By using "exists" instead of "exist". Thanks

On Jul 18, 2:13 pm, "Angrez Singh" <ang...@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.
End of messages
« Back to Discussions « Newer topic     Older topic »

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