[wtr-general] FireWatir doesn't wait for the page to load after clicking a button

2010-02-10 Thread Logic Bomb
Hi,

I need help regarding this issue with FireWatir. This is just a simple
program but I always receive this error:

C:/Ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.5/lib/firewatir/
element.rb:907:in `assert_exists': Unable to locate element, using
{:text=Google Groups} (Watir::Exception::UnknownObjectException)
from C:/Ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.5/lib/firewatir/
element.rb:1066:in `click'
from Demo_Firefox.rb:9

See my code below:

require 'rubygems'
require 'firewatir'

$Browser = FireWatir::Firefox.new
$Browser.goto 'http://www.google.com.ph'

$Browser.text_field(:name = 'q', :title = 'Google Search').set
'Google Groups'
$Browser.button(:name = 'btnG', :type = 'submit').click
$Browser.link(:text = 'Google Groups').click

Thanks,
Logic Bomb

-- 
You received this message because you are subscribed to the Google Groups 
Watir General group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general


Re: [wtr-general] FireWatir doesn't wait for the page to load after clicking a button

2010-02-10 Thread Angrez Singh
This type of syntax is not yet supported by FireWatir. Also, multiple
attributes are not yet supported.

Thanks,
Angrez

On Wed, Feb 10, 2010 at 3:08 PM, Logic Bomb januwa...@yahoo.com wrote:

 Hi,

 I need help regarding this issue with FireWatir. This is just a simple
 program but I always receive this error:

 C:/Ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.5/lib/firewatir/
 element.rb:907:in `assert_exists': Unable to locate element, using
 {:text=Google Groups} (Watir::Exception::UnknownObjectException)
from C:/Ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.5/lib/firewatir/
 element.rb:1066:in `click'
from Demo_Firefox.rb:9

 See my code below:

 require 'rubygems'
 require 'firewatir'

 $Browser = FireWatir::Firefox.new
 $Browser.goto 'http://www.google.com.ph'

 $Browser.text_field(:name = 'q', :title = 'Google Search').set
 'Google Groups'
 $Browser.button(:name = 'btnG', :type = 'submit').click
 $Browser.link(:text = 'Google Groups').click

 Thanks,
 Logic Bomb

 --
 You received this message because you are subscribed to the Google Groups
 Watir General group.
 To post to this group, send email to watir-general@googlegroups.com
 Before posting, please read the following guidelines:
 http://wiki.openqa.org/display/WTR/Support
 To unsubscribe from this group, send email to
 watir-general+unsubscr...@googlegroups.comwatir-general%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/watir-general


-- 
You received this message because you are subscribed to the Google Groups 
Watir General group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general