Re: [Wtr-general] Watir + IE dev toolbar

2007-02-27 Thread Bret Pettichord
Thanks for the reports. What versions of the IE Dev Toolbar are you using? I 
noticed that they are now on Version Beta 3.
-
Posted via Jive Forums
http://forums.openqa.org/thread.jspa?threadID=6590messageID=19263#19263
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


Re: [Wtr-general] Watir + IE dev toolbar

2007-02-27 Thread Maisonnette
Cool :-)

My version of IE dev toolbar is : 1.00.2109.0 (tools/about) ...
-
Posted via Jive Forums
http://forums.openqa.org/thread.jspa?threadID=6590messageID=19268#19268
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


Re: [Wtr-general] TextField#set and utf-8

2007-02-27 Thread Željko Filipin

On 2/27/07, Bret Pettichord [EMAIL PROTECTED] wrote:


See http://jira.openqa.org/browse/WTR-71 for comments on how to support
Chinese.



Thanks Bret, I will take a look.
--
Zeljko Filipin
zeljkofilipin.com
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] Can Watir be paused resumed manually when running test cases?

2007-02-27 Thread Željko Filipin

If you need to pause for fixed time, try

sleep 1 # 1 second pause

For more functionality, see ruby-breakpoint (
http://rubyforge.org/projects/ruby-breakpoint/) or ruby-debug (
http://rubyforge.org/projects/ruby-debug/). I have not used them, but I have
read at this list that ruby-breakpoint can pause and then resume ruby
script.
--
Zeljko Filipin
zeljkofilipin.com
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] Can Watir be paused resumed manually when running

2007-02-27 Thread John Lolis
I like using 

http://rubyforge.org/projects/ruby-breakpoint/

all you do is call breakpoint() and the application stops. The best part is 
that you are now at the IRB prompt so you can do all sorts of fun things :)

I setup my smoke test to call break point on any exception, i can then hop in 
and see exactly whats going on and fix it.
-
Posted via Jive Forums
http://forums.openqa.org/thread.jspa?threadID=6704messageID=19277#19277
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


[Wtr-general] Testing e-mail digest

2007-02-27 Thread Zeljko
This is not Watir related, but it is about testing in Ruby. I am just wondering 
how others are testing e-mail digest. I used to do it manually, and now I would 
like to make a script. I have to test daily, weekly and monthly digest.

Three options come to mind:

1) Simple, but slow. Change digest option for user and wait. I would like that 
my tests do not need a month to run in some cases.
2) Change system time. I would like to avoid that.
3) Add an option in configuration file. That option tells application to check 
date from database, not from system time. Then change date in database. Another 
option is useful - how often is application checking if digest should be sent. 
One minute sounds good. My developer actually implemented this.

I could probably make the third option work in Ruby. I have not worked with 
databases yet, but I hope it would not be too hard. I just wonder if there is a 
more simple way.

I would appreciate your suggestions and experiences.
-- 
Željko Filipin
zeljkofilipin.com
-
Posted via Jive Forums
http://forums.openqa.org/thread.jspa?threadID=6710messageID=19283#19283
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


[Wtr-general] Accessing Nested Tables

2007-02-27 Thread Steve Tangsombatvisit
Hi,

I am trying to access a cell in a nested table structure. The structure is 
something like this

TABLE
 TBODY
  TR
   TD
TABLE   #table 2
 TRTD/TD/TR
/TABLE
   /TD
  /TR
 /TBODY
/TABLE

My question is how do I gain access to a cell inside the second table? I have 
tried grabbing the internal cell using array structure

IE table[1][1]  and then trying table operations on that object, but the object 
is not recognized as a table (it's still recognized as a TableCell object). Is 
there a way I can cast the TableCell object as a Table object and grab the data 
that way? Or am I going about this the wrong way altogether?

Thanks for your help in advanced.

Steve Tang

___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] Accessing Nested Tables

2007-02-27 Thread carl . l . shaulis




Hello Steve,

I believe the ie.show_tables prints all tables present on the page to the
console, including nested tables.  Then it is a matter of isolating your
target table.  There is a short example on this blog.

http://onthewatirfront.blogspot.com/

Take care,

Carl





___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


Re: [Wtr-general] Accessing Nested Tables

2007-02-27 Thread Cain, Mark
Try something like:
 
$ie.table(:index, 2)[1][1].flash
 
Index is one-based and derived by counting the topmost table (do a view
source  ctrl + f  'table'--without single quotes) and count each
table tag until the desired table is reached.  The index number in your
example that is two.

--Mark

 

 



From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Steve
Tangsombatvisit
Sent: Tuesday, February 27, 2007 11:52 AM
To: wtr-general@rubyforge.org
Subject: [Wtr-general] Accessing Nested Tables


Hi,
 
I am trying to access a cell in a nested table structure. The structure
is something like this
 
TABLE
 TBODY
  TR
   TD
TABLE   #table 2
 TRTD/TD/TR
/TABLE
   /TD
  /TR
 /TBODY
/TABLE
 
My question is how do I gain access to a cell inside the second table? I
have tried grabbing the internal cell using array structure
 
IE table[1][1]  and then trying table operations on that object, but the
object is not recognized as a table (it's still recognized as a
TableCell object). Is there a way I can cast the TableCell object as a
Table object and grab the data that way? Or am I going about this the
wrong way altogether?
 
Thanks for your help in advanced.
 
Steve Tang
 
 
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

[Wtr-general] ci-reporter question

2007-02-27 Thread Bret Pettichord
I'm getting an error with ci_reporter on my CI box. It works on my 
development machine.

I've tracked the error down to the gem command, found here:

  def create_builder
begin
  gem 'builder'
  require 'builder'
rescue
  begin
gem 'activesupport'
require 'active_support'
  rescue
raise LoadError, XML Builder is required by CI::Reporter
  end
end unless defined?(Builder::XmlMarkup)
# :escape_attrs is obsolete in a newer version, but should do no 
harm
Builder::XmlMarkup.new(:indent = 2, :escape_attrs = true)
  end

I'm getting undefined method 'gem'. I can't figure out where this 
method is supposed to be defined. I have the latest rubygems (0.9.2). 
And builder and activesupport. Any hints?

Bret
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


Re: [Wtr-general] Accessing Nested Tables

2007-02-27 Thread Ravi
This also will work: 
ie.table(:index,1).table(:index,1).flash
-
Posted via Jive Forums
http://forums.openqa.org/thread.jspa?threadID=6714messageID=19309#19309
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


Re: [Wtr-general] ci-reporter question

2007-02-27 Thread Ethan Jewett
gem replaced require_gem, sort of -
http://redhanded.hobix.com/bits/require_gemIsDeprecated.html

However, you seem to have a recent enough version of rubygems that
this shouldn't be a problem.  Maybe there's a missing require
'rubygems' somewhere?

Ethan

On 2/27/07, Bret Pettichord [EMAIL PROTECTED] wrote:
 I'm getting an error with ci_reporter on my CI box. It works on my
 development machine.

 I've tracked the error down to the gem command, found here:

   def create_builder
 begin
   gem 'builder'
   require 'builder'
 rescue
   begin
 gem 'activesupport'
 require 'active_support'
   rescue
 raise LoadError, XML Builder is required by CI::Reporter
   end
 end unless defined?(Builder::XmlMarkup)
 # :escape_attrs is obsolete in a newer version, but should do no
 harm
 Builder::XmlMarkup.new(:indent = 2, :escape_attrs = true)
   end

 I'm getting undefined method 'gem'. I can't figure out where this
 method is supposed to be defined. I have the latest rubygems (0.9.2).
 And builder and activesupport. Any hints?

 Bret
 ___
 Wtr-general mailing list
 Wtr-general@rubyforge.org
 http://rubyforge.org/mailman/listinfo/wtr-general

___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


Re: [Wtr-general] ci-reporter question

2007-02-27 Thread Bret Pettichord
Ethan Jewett wrote:
 gem replaced require_gem, sort of -
 http://redhanded.hobix.com/bits/require_gemIsDeprecated.html

 However, you seem to have a recent enough version of rubygems that
 this shouldn't be a problem.  Maybe there's a missing require
 'rubygems' somewhere?
   
I'm using Ruby 1.8.2. I fixed the problem with

  gem update --system

Bret
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


[Wtr-general] add all Buttons id which has the same value to array

2007-02-27 Thread sathees
Hallo World,
I am trying to pass all the buttons which has the same value and different id 
to an array. so that I can randomly click on them for testing purpose.

I tried
b = []
ie.button(:value, Book).each {|id| b  id}

now this gives me an error:  undefined method `each' for 
#Watir::Button:0x2e6646c
I am using watir 1.5.1.100

any help appreciated.

thank you all
-
Posted via Jive Forums
http://forums.openqa.org/thread.jspa?threadID=6716messageID=19315#19315
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


Re: [Wtr-general] Testing e-mail digest

2007-02-27 Thread Chris McMahon
 I could probably make the third option work in Ruby. I have not worked with 
 databases yet, but I hope it would not be too hard. I just wonder if there is 
 a more simple way

That sounds like a reasonable approach.  I wrote an article for this
month's Better Software with very simple exercises in using databases
with Ruby.  If you need a copy, contact me off the list, I think I
still have a proof PDF version.

-Chris
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


Re: [Wtr-general] ci-reporter question

2007-02-27 Thread Nick Sieger
On 2/27/07, Ethan Jewett [EMAIL PROTECTED] wrote:
 gem replaced require_gem, sort of -
 http://redhanded.hobix.com/bits/require_gemIsDeprecated.html

 However, you seem to have a recent enough version of rubygems that
 this shouldn't be a problem.  Maybe there's a missing require
 'rubygems' somewhere?


That's what I would suspect too.  Maybe I missed it somewhere in the
load sequence for test unit.

/Nick
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


Re: [Wtr-general] Can Watir be paused resumed manually when running

2007-02-27 Thread Jason He
Yeah, ruby-breakpoint could pause the application, but it depends on the 
program and the test condition.

How to catch keyboard input signal by manual to pause/resume the testing 
process, for example using CTRL+P to pause and CTRL+R to resume.

Thanks,
Jason

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of John Lolis
Sent: 2007年2月27日 21:06
To: wtr-general@rubyforge.org
Subject: Re: [Wtr-general] Can Watir be paused  resumed manually when running

I like using 

http://rubyforge.org/projects/ruby-breakpoint/

all you do is call breakpoint() and the application stops. The best part is 
that you are now at the IRB prompt so you can do all sorts of fun things :)

I setup my smoke test to call break point on any exception, i can then hop in 
and see exactly whats going on and fix it.
-
Posted via Jive Forums
http://forums.openqa.org/thread.jspa?threadID=6704messageID=19277#19277
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] Can Watir be paused resumed manually whenrunning test cases?

2007-02-27 Thread Jason He
Thank you for your reply.

 

I want to pause the testing process at moment and at random time length, and 
resume it latterly.

 

Now, I want to know how to get keyboard input signal to cause ruby pause/resume.

 

Regards,

Jason



From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of ?eljko Filipin
Sent: 2007年2月27日 17:27
To: wtr-general@rubyforge.org
Subject: Re: [Wtr-general] Can Watir be paused  resumed manually whenrunning 
test cases?

 

If you need to pause for fixed time, try

sleep 1 # 1 second pause

For more functionality, see ruby-breakpoint 
(http://rubyforge.org/projects/ruby-breakpoint/ ) or ruby-debug 
(http://rubyforge.org/projects/ruby-debug/). I have not used them, but I have 
read at this list that ruby-breakpoint can pause and then resume ruby script. 
-- 
Zeljko Filipin
zeljkofilipin.com 

___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general