Re: [wtr-general] Script not generating for the new window

2010-03-01 Thread Željko Filipin
On Mon, Mar 1, 2010 at 8:03 AM, ayyappa ayyappa...@gmail.com wrote:
 I came to know that we can generate scripts in Watir using
  WatirMaker

WatirMaker is not supported at this list. Try at their list. You might get
an answer here, but the chances for that are not so good. You will find that
people here do not like recorders.

Željko
--
watir.com - community manager
pledgie.com/campaigns/2982 - donate to Watir
watirpodcast.com - host
testingpodcast.com - audio podcasts on software testing. all of them

-- 
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] My work on watir-webdriver (especially safari driver)

2010-03-01 Thread Željko Filipin
On Sun, Feb 28, 2010 at 7:46 PM, Al Snow jas...@hotmail.com wrote:
(especially with the safari driver for watir-webdriver)

I am really interested in learning more about Safari driver for
watir-webdriver. I am subscribed to your blog.

Željko
--
watir.com - community manager
pledgie.com/campaigns/2982 - donate to Watir
watirpodcast.com - host
testingpodcast.com - audio podcasts on software testing. all of them

-- 
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


[wtr-general] Watir::Exception::UnknownObjectException: Unable to locate element, using :class 'xyz '

2010-03-01 Thread anna barbara ostrowska
Hi there,



When I try to locate and click 'div' element using 'class'



@browser.div(:class,'xyz').click



following error occurs



Watir::Exception::UnknownObjectException: Unable to locate element, using
:class 'xyz'



Any ideas how to solve it?

Thanks in advance.

Anna

-- 
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] Watir::Exception::UnknownObjectException: Unable to locate element, using :class 'xyz '

2010-03-01 Thread Željko Filipin
On Mon, Mar 1, 2010 at 11:58 AM, anna barbara ostrowska 
ab.ostrow...@gmail.com wrote:
 @browser.div(:class,'xyz').click
 Watir::Exception::UnknownObjectException: Unable to locate element, using
:class 'xyz'

Please post html of the div. Is it in a frame?

Željko
--
watir.com - community manager
pledgie.com/campaigns/2982 - donate to Watir
watirpodcast.com - host
testingpodcast.com - audio podcasts on software testing. all of them

-- 
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] Watir::Exception::UnknownObjectException: Unable to locate element, using :class 'xyz '

2010-03-01 Thread anna barbara ostrowska
Hi,

thanks for prompt response


div class=nmp_SettingsSpice unselectable=ondiv class=nmm_Butta
unselectable=onMore.../a


and just in case env:


RubyGems Environment:
  - RUBYGEMS VERSION: 1.3.5
  - RUBY VERSION: 1.8.6 (2007-09-24 patchlevel 111) [i386-mswin32]
  - INSTALLATION DIRECTORY: c:/ruby/lib/ruby/gems/1.8
  - RUBY EXECUTABLE: c:/ruby/bin/ruby.exe
  - EXECUTABLE DIRECTORY: c:/ruby/bin
  - RUBYGEMS PLATFORMS:
- ruby
- x86-mswin32-60
  - GEM PATHS:
 - c:/ruby/lib/ruby/gems/1.8
 - C:/Documents and Settings/anostrow/.gem/ruby/1.8
  - GEM CONFIGURATION:
 - :update_sources = true
 - :verbose = true
 - :benchmark = false
 - :backtrace = false
 - :bulk_threshold = 1000
  - REMOTE SOURCES:
 - http://gems.rubyforge.org/

Anna

2010/3/1 Željko Filipin zeljko.fili...@wa-research.ch

 On Mon, Mar 1, 2010 at 11:58 AM, anna barbara ostrowska 
 ab.ostrow...@gmail.com wrote:
  @browser.div(:class,'xyz').click
  Watir::Exception::UnknownObjectException: Unable to locate element, using
 :class 'xyz'

 Please post html of the div. Is it in a frame?

 Željko
 --
 watir.com - community manager
 pledgie.com/campaigns/2982 - donate to Watir
 watirpodcast.com - host
 testingpodcast.com - audio podcasts on software testing. all of them

 --
 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


Re: [wtr-general] Watir::Exception::UnknownObjectException: Unable to locate element, using :class 'xyz '

2010-03-01 Thread Željko Filipin
On Mon, Mar 1, 2010 at 12:21 PM, anna barbara ostrowska 
ab.ostrow...@gmail.com wrote:
 div class=nmp_SettingsSpice unselectable=ondiv class=nmm_Butta
unselectable=onMore…/a

Please post your Watir code too.

This should work if div is not in a frame:

browser(:class = nmm_Butt).click

I wonder if unselectable=on is causing the trouble.

Željko

-- 
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


[wtr-general] Donate to Watir

2010-03-01 Thread Željko Filipin
If you like the Watir project, you can make a donation. There is donate
button at http://watir.com/.

We have raised $500 this year. We will spend it on hosting and stuff like
that. We will not spend it on beer, no matter how much I would like that. :)

You can see list of donors and Bret's thank you note at
http://pledgie.com/campaigns/2982

Željko
--
watir.com - community manager
pledgie.com/campaigns/2982 - donate to Watir
watirpodcast.com - host
testingpodcast.com - audio podcasts on software testing. all of them

-- 
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


[wtr-general] Watir - Firefox (encoding problem)

2010-03-01 Thread ponto
hello,

i'm trying to set an text_field's value to an string with é char,
but what on firefox appears é.
does anyone knows how to solve this?

-- 
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] Watir - Firefox (encoding problem)

2010-03-01 Thread Željko Filipin
On Mon, Mar 1, 2010 at 4:19 PM, ponto hugoandrego...@gmail.com wrote:
 i'm trying to set an text_field's value to an string with é char,
 but what on firefox appears é.

I remember seeing that problem on the list. Until somebody replies, browse
the archive.

Željko
--
watir.com - community manager
pledgie.com/campaigns/2982 - donate to Watir
watirpodcast.com - host
testingpodcast.com - audio podcasts on software testing. all of them

-- 
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] Watir - Firefox (encoding problem)

2010-03-01 Thread ponto
i'm on linux i saw this
http://www.mail-archive.com/watir-general@googlegroups.com/msg04744.html but
this didn't work for me. i'm using firewatir (1.6.5), with firefox compiled
by myself with jssh extension (is there any compile option to set unicode or
something for jssh?).

On 1 March 2010 15:32, Željko Filipin zeljko.fili...@wa-research.ch wrote:

 On Mon, Mar 1, 2010 at 4:19 PM, ponto hugoandrego...@gmail.com wrote:
  i'm trying to set an text_field's value to an string with é char,
  but what on firefox appears é.

 I remember seeing that problem on the list. Until somebody replies, browse
 the archive.

 Željko
 --
 watir.com - community manager
 pledgie.com/campaigns/2982 - donate to Watir
 watirpodcast.com - host
 testingpodcast.com - audio podcasts on software testing. all of them

  --
 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


Re: [wtr-general] Watir - Firefox (encoding problem)

2010-03-01 Thread Željko Filipin
On Mon, Mar 1, 2010 at 4:55 PM, ponto hugoandrego...@gmail.com wrote:
 (is there any compile option to set unicode or something for jssh?).

Try driving Firefox with watir-webdriver (until FireWatir ninjas answer),
maybe it will solve the problem:

http://zeljkofilipin.com/2010/01/12/watir-on-webdriver/

Željko

-- 
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] Watir - Firefox (encoding problem)

2010-03-01 Thread ponto
yeah, i've already done that.
but i would like to use it on firewatir, i will have to wait :P

On 1 March 2010 15:59, Željko Filipin zeljko.fili...@wa-research.ch wrote:

 On Mon, Mar 1, 2010 at 4:55 PM, ponto hugoandrego...@gmail.com wrote:
  (is there any compile option to set unicode or something for jssh?).

 Try driving Firefox with watir-webdriver (until FireWatir ninjas answer),
 maybe it will solve the problem:

 http://zeljkofilipin.com/2010/01/12/watir-on-webdriver/

 Željko

  --
 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


Re: [wtr-general] Watir - Firefox (encoding problem)

2010-03-01 Thread Željko Filipin
On Mon, Mar 1, 2010 at 5:02 PM, ponto hugoandrego...@gmail.com wrote:
 yeah, i've already done that.

It works fine with watir-webdriver?

 but i would like to use it on firewatir

Why?

Željko

-- 
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] Watir - Firefox (encoding problem)

2010-03-01 Thread ponto
yes, it worked fine.

well, because i'm doing an study on web functional testing tools for a
company, and using webdriver maybe it would be better to use the original
one, i mean the new on-going selenium2, i think. but i'm not sure. for what
i really don't know yet.

On 1 March 2010 16:08, Željko Filipin zeljko.fili...@wa-research.ch wrote:

 On Mon, Mar 1, 2010 at 5:02 PM, ponto hugoandrego...@gmail.com wrote:
  yeah, i've already done that.

 It works fine with watir-webdriver?


  but i would like to use it on firewatir

 Why?


 Željko

 --
 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


[wtr-general] execution expired

2010-03-01 Thread hliauw
Hi, can somebody help me understand the following exceptions?  it
happened on both ie and firefox goto call.

E, [2010-03-01T04:11:28.918000 #2884] ERROR -- : Exception in goto:
execution expired: [C:/Ruby/lib/ruby/1.8/timeout.rb:60:in `wait',
C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/ie-class.rb:
355:in `goto', C:\\myFolder/myWrapperFile.rb:64:in `goto', C:/Ruby/
lib/ruby/1.8/timeout.rb:62:in `timeout', C:\\myFolder/
myWrapperFile.rb:62:in `goto', C:/myFolder/myTestFile1.rb:30]

E, [2010-02-27T04:13:58.575000 #3888] ERROR -- : Exception in goto:
execution expired: [C:/Ruby/lib/ruby/1.8/timeout.rb:60:in
`read_socket', C:/Ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.5/lib/
firewatir/jssh_socket.rb:6:in `js_eval', C:/Ruby/lib/ruby/gems/1.8/
gems/firewatir-1.6.5/lib/firewatir/firefox.rb:492:in `wait', C:/Ruby/
lib/ruby/gems/1.8/gems/firewatir-1.6.5/lib/firewatir/firefox.rb:196:in
`goto', C:\\myFolder/myWrapperFile.rb:64:in `goto', C:/Ruby/lib/
ruby/1.8/timeout.rb:62:in `timeout', C:\\myFolder/myWrapperFile.rb:
62:in `goto', C:/myFolder/myTestFile2.rb:26]

here is the relevant code in myWrapperFile.rb starting from line 62:
Timeout::timeout(toutval) do
  begin
browser.goto(url)
  rescue Timeout::Error
logger.error(goto call got hung after #{toutval}s);
  rescue Exception = e
logger.error(Exception in goto: #{e.message}:
#{e.backtrace.inspect});
  end
end

-- 
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] execution expired

2010-03-01 Thread windy
method Timeout::timeout throw Timeout::Erorr exceptions,it happens if  
browser can't open or open it too slow.


you should test the url manual,or increase var 'toutval'.

在 Tue, 02 Mar 2010 01:17:53 +0800,hliauw hli...@gmail.com 写道:


Hi, can somebody help me understand the following exceptions?  it
happened on both ie and firefox goto call.

E, [2010-03-01T04:11:28.918000 #2884] ERROR -- : Exception in goto:
execution expired: [C:/Ruby/lib/ruby/1.8/timeout.rb:60:in `wait',
C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/ie-class.rb:
355:in `goto', C:\\myFolder/myWrapperFile.rb:64:in `goto', C:/Ruby/
lib/ruby/1.8/timeout.rb:62:in `timeout', C:\\myFolder/
myWrapperFile.rb:62:in `goto', C:/myFolder/myTestFile1.rb:30]

E, [2010-02-27T04:13:58.575000 #3888] ERROR -- : Exception in goto:
execution expired: [C:/Ruby/lib/ruby/1.8/timeout.rb:60:in
`read_socket', C:/Ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.5/lib/
firewatir/jssh_socket.rb:6:in `js_eval', C:/Ruby/lib/ruby/gems/1.8/
gems/firewatir-1.6.5/lib/firewatir/firefox.rb:492:in `wait', C:/Ruby/
lib/ruby/gems/1.8/gems/firewatir-1.6.5/lib/firewatir/firefox.rb:196:in
`goto', C:\\myFolder/myWrapperFile.rb:64:in `goto', C:/Ruby/lib/
ruby/1.8/timeout.rb:62:in `timeout', C:\\myFolder/myWrapperFile.rb:
62:in `goto', C:/myFolder/myTestFile2.rb:26]

here is the relevant code in myWrapperFile.rb starting from line 62:
Timeout::timeout(toutval) do
  begin
browser.goto(url)
  rescue Timeout::Error
logger.error(goto call got hung after #{toutval}s);
  rescue Exception = e
logger.error(Exception in goto: #{e.message}:
#{e.backtrace.inspect});
  end
end




--
使用 Opera 革命性的电子邮件客户程序: http://www.opera.com/mail/

--
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


[wtr-general] Re: execution expired

2010-03-01 Thread hliauw
Windy, thanks a bunch.
toutval is currently set to 30s and 40s respectively. The url is an
internal test page with just 9 images in it. I tested the url manually
from the same machine and it loads within 1-2s. I should say that we
are actually using watir+browser to test a proxy server so there is a
possibility of an error there. However, we already looked at the proxy
logs and it shows that it already sent all the images back to the
browser.




On Mar 1, 12:27 pm, windy lyfi2...@sina.com wrote:
 method Timeout::timeout throw Timeout::Erorr exceptions,it happens if  
 browser can't open or open it too slow.

 you should test the url manual,or increase var 'toutval'.

 ÔÚ Tue, 02 Mar 2010 01:17:53 +0800£¬hliauw hli...@gmail.com дµÀ:



  Hi, can somebody help me understand the following exceptions?  it
  happened on both ie and firefox goto call.

  E, [2010-03-01T04:11:28.918000 #2884] ERROR -- : Exception in goto:
  execution expired: [C:/Ruby/lib/ruby/1.8/timeout.rb:60:in `wait',
  C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/ie-class.rb:
  355:in `goto', C:\\myFolder/myWrapperFile.rb:64:in `goto', C:/Ruby/
  lib/ruby/1.8/timeout.rb:62:in `timeout', C:\\myFolder/
  myWrapperFile.rb:62:in `goto', C:/myFolder/myTestFile1.rb:30]

  E, [2010-02-27T04:13:58.575000 #3888] ERROR -- : Exception in goto:
  execution expired: [C:/Ruby/lib/ruby/1.8/timeout.rb:60:in
  `read_socket', C:/Ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.5/lib/
  firewatir/jssh_socket.rb:6:in `js_eval', C:/Ruby/lib/ruby/gems/1.8/
  gems/firewatir-1.6.5/lib/firewatir/firefox.rb:492:in `wait', C:/Ruby/
  lib/ruby/gems/1.8/gems/firewatir-1.6.5/lib/firewatir/firefox.rb:196:in
  `goto', C:\\myFolder/myWrapperFile.rb:64:in `goto', C:/Ruby/lib/
  ruby/1.8/timeout.rb:62:in `timeout', C:\\myFolder/myWrapperFile.rb:
  62:in `goto', C:/myFolder/myTestFile2.rb:26]

  here is the relevant code in myWrapperFile.rb starting from line 62:
  Timeout::timeout(toutval) do
    begin
      browser.goto(url)
    rescue Timeout::Error
      logger.error(goto call got hung after #{toutval}s);
    rescue Exception = e
      logger.error(Exception in goto: #{e.message}:
  #{e.backtrace.inspect});
    end
  end

 --
 ʹÓà Opera ¸ïÃüÐԵĵç×ÓÓʼþ¿Í»§³ÌÐò:http://www.opera.com/mail/

-- 
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


[wtr-general] Re: Switching from Test::Unit to RSpec - tips/gotchas? Short code review.

2010-03-01 Thread Adam Reed
I'm at it again!  Having some trouble completing an RSpec script with
a pretty simple concept -- mostly having trouble with the hierarchy of
it all.


Basically, I have a single page with many links.  Each link points the
same type of template with a different title.  The script stores these
links to an array, visits each page and verifies that it contains the
correct title.  That's the easy part.

However with RSpec, I'd like each different link to be it's own
headline/describe function for the HTML report -- each page should
have it's own NAME page should contain the word name in the title,
etc.  Here is what I have so far, that obviously does not work:

describe Page with links do

  before(:all) do
setup
@browser.goto page
  end #before.all

  it should contain a table with links do
@browser.table(:class, /example/).links.each do |link|
  @countries  [link.text, link.href]
end #links

@countries.should_not be_empty
  end #it

  @countries.each do |name, link|
it should contain the word #{name} in the title do
  @browser.goto link
  @browser.div(:id, /example/).text.should include(name)
end #it
  end #...@countries

  after(:all) do
teardown
  end #after
end #describe


That made me think that I'd need something more like what is below,
but I need to instantiate the browser and created the @countries
array, and this script did not like having two describe blocks...  I'm
getting pretty confused!

(this seems correct, I just don't know where to put it in the script!)

@countries.each do |name, link|
 describe name do
  it should contain the word #{name} do
@browser.goto link
@browser.div(:id, /whatever/).text.should
include(name)
  end #it
 end
end #each


With Test::Unit, I would simply use the following, but again, I'm not
trying to conform to RSpec-type output here:

def test_01_example
 page_links  Array.new

 @browser.goto page

 @browser.links.each do |link|
page_links  [link.text, link.href]
 end #page.links.each

 page_links.each do |title, url|
@browser.goto url
assert(@browser.contains_text(title))
 end #page_links.each
end #def

Can someone please sort me out?

-- 
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