[wtr-general] Re: Issue trying to click on a span element using safariwatir

2009-11-19 Thread John Kolokotronis

The dot character in a regex (.) is a wildcard so you need to escape
it. Try this:

browser.span(:text, /butterfly\.m4v/).click

Regards,

John

On Nov 18, 3:35 pm, QAguy qablogm...@gmail.com wrote:
 I cannot add an id as I don't have control over code decisions
 unfortunately. So I am forced to work with what I have.

 I also tried this: browser.span(:text, /butterfly.m4v/).click which
 gives me this:

 Unable to locate Span element with text of (?-mix:butterfly.m4v)

 and this: browser.span(:title, /butterfly.m4v/).click which gives me
 this:

 SafariWatir does not currently support finding by title

 So I'm kinda stumped at the moment as to what to do.

 Thanks
 QAguy

 On Nov 17, 9:16 pm, Adam Esterline a...@esterlines.com wrote:

  Hmm... I am not sure why it cannot find the span.

  Does it seem to only be a problem when finding by text?    Can you add
  an id to that span?    Does it work when searching for it by id?

  Looking for a little more information.

  AE

  On Tue, Nov 17, 2009 at 3:57 PM, QAguy qablogm...@gmail.com wrote:

   I am using the following:

   browser.span(:text,'butterfly.m4v').click

   to click on that item in the following code:

   span class=name
   a title=butterfly.m4v class=trim_to_height 1_lines href=/videos/
   359dd3be1914b8spanbutterfly.m4v/span/a
   /span

   But I get the following result:

   Unable to locate Span element with text of butterfly.m4v

   This is being run from a file using rpsec with safariwatir. No sure
   why this is not working. Hoping someone can help.

   Thanks
   QAguy

  --
  Adam Esterlinehttp://adamesterline.com/
--~--~-~--~~~---~--~~
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: Delete cookies in Firewatir

2009-11-19 Thread aidy lewis

Angrez et al

It is unlikely that we would want to get all cookies, but get cookies
for a particular uri.

browser.get_cookies('www.google.com')

How about
remove_cookies(:domain = 'domain')
remove_cookies(:all)

add_cookie is good.

Aidy

2009/11/19 Angrez Singh ang...@gmail.com:
 Bret proposed the following syntax or method names via Google Wave, so we
 should stick to this:

 Browser#cookies (get cookies as ruby array of hashes)

 Browser#add_cookie(opts) where opts is a hash of :name, :value, :path,
 :secure and :name/:value will raise ArgumentError if not supplied

 Browser#remove_cookie(opts) where opts is a hash of :domain and :name

 Browser#remove_all_cookies or Browser#remove_cookie(:all)?

 Thanks,

 Angrez


 On Wed, Nov 18, 2009 at 10:16 PM, aidy lewis aidy.le...@googlemail.com
 wrote:

 Ethan

 2009/11/18 aidy lewis aidy.le...@googlemail.com:
  Going to put the URI in, for #read_cookies or something
 
  2009/11/18 Ethan notet...@gmail.com:
  That seems to be lacking the URI to set the cookie on. Would the method
  just
  infer that from the current location of the browser, or should that be
  be
  configurable by the user?

 I was lazily reading. I think the default will be the current uri
 unless specified.

 WDYT?

 Aidy




 


--~--~-~--~~~---~--~~
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: Delete cookies in Firewatir

2009-11-19 Thread aidy lewis

How about this

browser.get_cookies(:domain = 'domain')
browser.get_cookies(:all)

browser.remove_cookies(:domain = 'domain')
remove_cookies(:all)

?

Aidy


2009/11/19 aidy lewis aidy.le...@googlemail.com:
 Angrez et al

 It is unlikely that we would want to get all cookies, but get cookies
 for a particular uri.

 browser.get_cookies('www.google.com')

 How about
 remove_cookies(:domain = 'domain')
 remove_cookies(:all)

 add_cookie is good.

 Aidy

 2009/11/19 Angrez Singh ang...@gmail.com:
 Bret proposed the following syntax or method names via Google Wave, so we
 should stick to this:

 Browser#cookies (get cookies as ruby array of hashes)

 Browser#add_cookie(opts) where opts is a hash of :name, :value, :path,
 :secure and :name/:value will raise ArgumentError if not supplied

 Browser#remove_cookie(opts) where opts is a hash of :domain and :name

 Browser#remove_all_cookies or Browser#remove_cookie(:all)?

 Thanks,

 Angrez


 On Wed, Nov 18, 2009 at 10:16 PM, aidy lewis aidy.le...@googlemail.com
 wrote:

 Ethan

 2009/11/18 aidy lewis aidy.le...@googlemail.com:
  Going to put the URI in, for #read_cookies or something
 
  2009/11/18 Ethan notet...@gmail.com:
  That seems to be lacking the URI to set the cookie on. Would the method
  just
  infer that from the current location of the browser, or should that be
  be
  configurable by the user?

 I was lazily reading. I think the default will be the current uri
 unless specified.

 WDYT?

 Aidy




 



--~--~-~--~~~---~--~~
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: happy belated birthday watir.

2009-11-19 Thread jnxgn

Happy Birthday!


On Nov 19, 2:53 am, Paul Rogers paul.rog...@shaw.ca wrote:
 If Im correct, watirs first public appearance was 5 years ago ( plus a few
 days as I forgot to send the email).

 Bret was teaching a class on test automation at StarWest, and I helped out.
 This was the first appearance of watir. During the class we found lots of
 bugs. Thanks to all the students for not walking out on us. Is anyone from
 that class on the list?

 http://www.sqe.com/Events/Archive/sw2004/tutorials.html

 Paul
--~--~-~--~~~---~--~~
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: happy belated birthday watir.

2009-11-19 Thread Raveendran P
Hi Team,

Watir Rocks...

Congrats team.

Water is must for real world. Watir is must automation world!

Regards,
P.Raveendran
http://raveendran.wordpress.com




On Thu, Nov 19, 2009 at 5:31 PM, jnxgn s...@jnxgn.cn wrote:


 Happy Birthday!


 On Nov 19, 2:53 am, Paul Rogers paul.rog...@shaw.ca wrote:
  If Im correct, watirs first public appearance was 5 years ago ( plus a
 few
  days as I forgot to send the email).
 
  Bret was teaching a class on test automation at StarWest, and I helped
 out.
  This was the first appearance of watir. During the class we found lots of
  bugs. Thanks to all the students for not walking out on us. Is anyone
 from
  that class on the list?
 
  http://www.sqe.com/Events/Archive/sw2004/tutorials.html
 
  Paul
 



-- 
Regards,
P.Raveendran
http://raveendran.wordpress.com

--~--~-~--~~~---~--~~
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: Issue trying to click on a span element using safariwatir

2009-11-19 Thread Ethan
That will probably not fix it as the regex dot will match the literal dot,
so it should still work as-is.

On Thu, Nov 19, 2009 at 03:52, John Kolokotronis johnj...@gmail.com wrote:


 The dot character in a regex (.) is a wildcard so you need to escape
 it. Try this:

 browser.span(:text, /butterfly\.m4v/).click

 Regards,

 John

 On Nov 18, 3:35 pm, QAguy qablogm...@gmail.com wrote:
  I cannot add an id as I don't have control over code decisions
  unfortunately. So I am forced to work with what I have.
 
  I also tried this: browser.span(:text, /butterfly.m4v/).click which
  gives me this:
 
  Unable to locate Span element with text of (?-mix:butterfly.m4v)
 
  and this: browser.span(:title, /butterfly.m4v/).click which gives me
  this:
 
  SafariWatir does not currently support finding by title
 
  So I'm kinda stumped at the moment as to what to do.
 
  Thanks
  QAguy
 
  On Nov 17, 9:16 pm, Adam Esterline a...@esterlines.com wrote:
 
   Hmm... I am not sure why it cannot find the span.
 
   Does it seem to only be a problem when finding by text?Can you add
   an id to that span?Does it work when searching for it by id?
 
   Looking for a little more information.
 
   AE
 
   On Tue, Nov 17, 2009 at 3:57 PM, QAguy qablogm...@gmail.com wrote:
 
I am using the following:
 
browser.span(:text,'butterfly.m4v').click
 
to click on that item in the following code:
 
span class=name
a title=butterfly.m4v class=trim_to_height 1_lines
 href=/videos/
359dd3be1914b8spanbutterfly.m4v/span/a
/span
 
But I get the following result:
 
Unable to locate Span element with text of butterfly.m4v
 
This is being run from a file using rpsec with safariwatir. No sure
why this is not working. Hoping someone can help.
 
Thanks
QAguy
 
   --
   Adam Esterlinehttp://adamesterline.com/
 


--~--~-~--~~~---~--~~
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: Delete cookies in Firewatir

2009-11-19 Thread b...@pettichord.com

I suggest that this conversation move to the watir-development list.
We need need to ensure that Jari and the developers for other Watir
implementations are in the loop, and I'm not sure that they watch
everything here.

Bret

On Nov 19, 6:11 am, Tony ynot...@gmail.com wrote:
 Hi Aidy,

 Could you take a look at this code that i had submitted a year back.
 (regarding cookies)http://jira.openqa.org/browse/WTR-264

 Maybe you would need to change the method names, but i have tried to
 include all possible cookie operations.

 Thanks,
 Tony

 On Nov 19, 3:41 pm, aidy lewis aidy.le...@googlemail.com wrote:

  How about this

  browser.get_cookies(:domain = 'domain')
  browser.get_cookies(:all)

  browser.remove_cookies(:domain = 'domain')
  remove_cookies(:all)

  ?

  Aidy

  2009/11/19 aidy lewis aidy.le...@googlemail.com:

   Angrez et al

   It is unlikely that we would want to get all cookies, but get cookies
   for a particular uri.

   browser.get_cookies('www.google.com')

   How about
   remove_cookies(:domain = 'domain')
   remove_cookies(:all)

   add_cookie is good.

   Aidy

   2009/11/19 Angrez Singh ang...@gmail.com:
   Bret proposed the following syntax or method names via Google Wave, so we
   should stick to this:

   Browser#cookies (get cookies as ruby array of hashes)

   Browser#add_cookie(opts) where opts is a hash of :name, :value, :path,
   :secure and :name/:value will raise ArgumentError if not supplied

   Browser#remove_cookie(opts) where opts is a hash of :domain and :name

   Browser#remove_all_cookies or Browser#remove_cookie(:all)?

   Thanks,

   Angrez

   On Wed, Nov 18, 2009 at 10:16 PM, aidy lewis aidy.le...@googlemail.com
   wrote:

   Ethan

   2009/11/18 aidy lewis aidy.le...@googlemail.com:
Going to put the URI in, for #read_cookies or something

2009/11/18 Ethan notet...@gmail.com:
That seems to be lacking the URI to set the cookie on. Would the 
method
just
infer that from the current location of the browser, or should that 
be
be
configurable by the user?

   I was lazily reading. I think the default will be the current uri
   unless specified.

   WDYT?

   Aidy
--~--~-~--~~~---~--~~
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: Issue trying to click on a span element using safariwatir

2009-11-19 Thread QAguy

Unfortunately that didn't work either. I did this:

browser.span(:text, /butterfly\.m4v/).click and got this:

Unable to locate Span element with text of (?-mix:butterfly\.m4v)

I'm not sure what the ?-mix: part of that is. Anything else you can
recommend?

QAguy

On Nov 19, 3:52 am, John Kolokotronis johnj...@gmail.com wrote:
 The dot character in a regex (.) is a wildcard so you need to escape
 it. Try this:

 browser.span(:text, /butterfly\.m4v/).click

 Regards,

 John

 On Nov 18, 3:35 pm, QAguy qablogm...@gmail.com wrote:

  I cannot add an id as I don't have control over code decisions
  unfortunately. So I am forced to work with what I have.

  I also tried this: browser.span(:text, /butterfly.m4v/).click which
  gives me this:

  Unable to locate Span element with text of (?-mix:butterfly.m4v)

  and this: browser.span(:title, /butterfly.m4v/).click which gives me
  this:

  SafariWatir does not currently support finding by title

  So I'm kinda stumped at the moment as to what to do.

  Thanks
  QAguy

  On Nov 17, 9:16 pm, Adam Esterline a...@esterlines.com wrote:

   Hmm... I am not sure why it cannot find the span.

   Does it seem to only be a problem when finding by text?    Can you add
   an id to that span?    Does it work when searching for it by id?

   Looking for a little more information.

   AE

   On Tue, Nov 17, 2009 at 3:57 PM, QAguy qablogm...@gmail.com wrote:

I am using the following:

browser.span(:text,'butterfly.m4v').click

to click on that item in the following code:

span class=name
a title=butterfly.m4v class=trim_to_height 1_lines href=/videos/
359dd3be1914b8spanbutterfly.m4v/span/a
/span

But I get the following result:

Unable to locate Span element with text of butterfly.m4v

This is being run from a file using rpsec with safariwatir. No sure
why this is not working. Hoping someone can help.

Thanks
QAguy

   --
   Adam Esterlinehttp://adamesterline.com/
--~--~-~--~~~---~--~~
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: No return in irb from click method

2009-11-19 Thread Tiffany Fodor

Hi Steve!

I've noticed that when I copy multiple lines of code into irb, all but
the last are processed and then I have to hit enter to process the
last line of code.

Have you verified that you can issue just the click for 'DDD' on it's
own in irb?  Is it possible that some javascript has been added to the
link that you need to fire?

Just some wild guesses - hope this helps!

-Tiffany



On Nov 18, 5:30 pm, Steve Hamlett shaml...@twia.org wrote:
 I'm using irb to progress thru a series of html pages like so:

 ie.link(:text,'AAA').click
 ie.link(:text,'BBB').click
 ie.link(:text,'CCC').click
 ie.link(:text,'DDD').click

 Each click brings up a new page.  When I click on 'DDD', the expected
 page comes up but the click method seems to get hung.  That is, I
 never get a new prompt in irb.

 I see similar behavior if I run the script in Scite.  The expected
 page comes up from the final 'click' command (with no error message)
 but the script is hung at that point.

 I developed this script using Scite maybe 3 or 4 months ago and it
 worked fine then.  I was running IE6 at the time.  I've tried it with
 both IE7 and IE8 today and had the same problem with both.  This is
 the first time I've tried to run it since I developed it.  I haven't
 gone back to try it with IE6 yet.

 My ruby version is 1.8.6 (2008-08-11 patchlevel 287).
 My watir version is 1.6.2.

 Does this issue sound familiar to anyone?
--~--~-~--~~~---~--~~
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: No return in irb from click method

2009-11-19 Thread Steve Hamlett

Thanks for the ideas, Tiffany.  Actually, I just tried going back to
IE6 and that strategy worked.  A set of 9 scripts ran cleanly.  I see
that I'm three releases behind on watir.  I may need to upgrade to
1.6.5 and see how that works with IE7 and/or IE8.

On Nov 19, 11:43 am, Tiffany Fodor tcfo...@comcast.net wrote:
 Hi Steve!

 I've noticed that when I copy multiple lines of code into irb, all but
 the last are processed and then I have to hit enter to process the
 last line of code.

 Have you verified that you can issue just the click for 'DDD' on it's
 own in irb?  Is it possible that some javascript has been added to the
 link that you need to fire?

 Just some wild guesses - hope this helps!

 -Tiffany

 On Nov 18, 5:30 pm, Steve Hamlett shaml...@twia.org wrote:

  I'm using irb to progress thru a series of html pages like so:

  ie.link(:text,'AAA').click
  ie.link(:text,'BBB').click
  ie.link(:text,'CCC').click
  ie.link(:text,'DDD').click

  Each click brings up a new page.  When I click on 'DDD', the expected
  page comes up but the click method seems to get hung.  That is, I
  never get a new prompt in irb.

  I see similar behavior if I run the script in Scite.  The expected
  page comes up from the final 'click' command (with no error message)
  but the script is hung at that point.

  I developed this script using Scite maybe 3 or 4 months ago and it
  worked fine then.  I was running IE6 at the time.  I've tried it with
  both IE7 and IE8 today and had the same problem with both.  This is
  the first time I've tried to run it since I developed it.  I haven't
  gone back to try it with IE6 yet.

  My ruby version is 1.8.6 (2008-08-11 patchlevel 287).
  My watir version is 1.6.2.

  Does this issue sound familiar to anyone?
--~--~-~--~~~---~--~~
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: Issue trying to click on a span element using safariwatir

2009-11-19 Thread Tiffany Fodor

Hi!

Since you're already using a regex, could you do this:

browser.span(:text, /butterfly/).click

or do you have multiple spans with 'butterfly' in the text?  If so,
could you specify the one you want using it's index?

browser.span(:text = /butterfly/, :index = 3).click

Also, it might help to determine if this issue is limited to
safariwatir or if it happens in other flavors of watir as well.  Have
you tried the command on an IE or Firefox browser in irb?

Hope this helps!

-Tiffany


On Nov 19, 9:03 am, Ethan notet...@gmail.com wrote:
 The (?-mix stuff is just the string representation of the regexp - you can
 see this on any regexp doing #to_s: /foo/.to_s

 = (?-mix:foo)
 But, I don't have anything more useful to add; I don't really know anything
 about safariwatir - sorry.

 On Thu, Nov 19, 2009 at 10:59, QAguy qablogm...@gmail.com wrote:

  Unfortunately that didn't work either. I did this:

  browser.span(:text, /butterfly\.m4v/).click and got this:

  Unable to locate Span element with text of (?-mix:butterfly\.m4v)

  I'm not sure what the ?-mix: part of that is. Anything else you can
  recommend?

  QAguy

  On Nov 19, 3:52 am, John Kolokotronis johnj...@gmail.com wrote:
   The dot character in a regex (.) is a wildcard so you need to escape
   it. Try this:

   browser.span(:text, /butterfly\.m4v/).click

   Regards,

   John

   On Nov 18, 3:35 pm, QAguy qablogm...@gmail.com wrote:

I cannot add an id as I don't have control over code decisions
unfortunately. So I am forced to work with what I have.

I also tried this: browser.span(:text, /butterfly.m4v/).click which
gives me this:

Unable to locate Span element with text of (?-mix:butterfly.m4v)

and this: browser.span(:title, /butterfly.m4v/).click which gives me
this:

SafariWatir does not currently support finding by title

So I'm kinda stumped at the moment as to what to do.

Thanks
QAguy

On Nov 17, 9:16 pm, Adam Esterline a...@esterlines.com wrote:

 Hmm... I am not sure why it cannot find the span.

 Does it seem to only be a problem when finding by text?    Can you
  add
 an id to that span?    Does it work when searching for it by id?

 Looking for a little more information.

 AE

 On Tue, Nov 17, 2009 at 3:57 PM, QAguy qablogm...@gmail.com wrote:

  I am using the following:

  browser.span(:text,'butterfly.m4v').click

  to click on that item in the following code:

  span class=name
  a title=butterfly.m4v class=trim_to_height 1_lines
  href=/videos/
  359dd3be1914b8spanbutterfly.m4v/span/a
  /span

  But I get the following result:

  Unable to locate Span element with text of butterfly.m4v

  This is being run from a file using rpsec with safariwatir. No sure
  why this is not working. Hoping someone can help.

  Thanks
  QAguy

 --
 Adam Esterlinehttp://adamesterline.com/
--~--~-~--~~~---~--~~
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 Examples...Need Help

2009-11-19 Thread tester86

I been through all the main websites with regards to watir commands,
but I need some documention or something to verify data on a web page
and return that value, do I have to include rspec.is there any
good guides to watir apart from the 5 min quick example.

--~--~-~--~~~---~--~~
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: Watir Examples...Need Help

2009-11-19 Thread Tiffany Fodor

Hi!

I think you need to decide what type of framework you want and that
will dictate how you perform validations.  From some of your previous
posts, it looks like you've started with Cucumber.  Are you sticking
with Cucumber, or looking for a different framework?  You can find
examples of various frameworks here:

http://wiki.openqa.org/display/WTR/Examples

Hope this helps!

-Tiffany

On Nov 19, 1:14 pm, tester86 sagar.am...@gmail.com wrote:
 I been through all the main websites with regards to watir commands,
 but I need some documention or something to verify data on a web page
 and return that value, do I have to include rspec.is there any
 good guides to watir apart from the 5 min quick example.
--~--~-~--~~~---~--~~
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] Hi, I have the following on my page... 80 68 7E.01.73.6D.40.50.CE.D5 Recorded: 10/29/09 Delete 8067 7E.01.73.6D.40.4F.CE.CE Recorded: 10/29/0 9 Delete 8065 7E.01.73.6D.

2009-11-19 Thread xguarder

Hi, I have the following on my page...

80687E.01.73.6D.40.50.CE.D5 Recorded: 10/29/09  Delete
80677E.01.73.6D.40.4F.CE.CE Recorded: 10/29/09  Delete
80657E.01.73.6D.40.4E.CE.C7 Recorded: 10/29/09  Delete


All the Delete's above are links. All have the same href (and text
obviously). My question is, using FireWatir, what would be the best
way to hone in a specific item to delete? I am particularly interested
in a scenario where I know ahead of time which entry to delete based
on the code in the 2nd column, then selecting the delete link that
follows that text entry.

Also, while I'm at it, I would like to be able to retrieve any other
surrounding column of text too, such as the recorded date timestamp in
the 3rd column above.

Thanks in advance!

--~--~-~--~~~---~--~~
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: Hi, I have the following on my page... 8068 7E.01.73.6D.40.50.CE.D5 Recorded: 10/29/09 Delete 8067 7E.01.73.6D.40.4F.CE.CE Recorded: 10/29/09 Delete 8065 7E.01.73.6D.40.

2009-11-19 Thread Tiffany Fodor

Hi!

If the text below is contained in a table, you can do this:

my_table = browser.table(:id, 'table_id')

my_table.rows.each do |row|
  if row.text.include?('7E.01.73.6D.40.50.CE.D5')


On Nov 19, 2:53 pm, xguarder shams...@gmail.com wrote:
 Hi, I have the following on my page...

 8068    7E.01.73.6D.40.50.CE.D5         Recorded: 10/29/09              Delete
 8067    7E.01.73.6D.40.4F.CE.CE         Recorded: 10/29/09              Delete
 8065    7E.01.73.6D.40.4E.CE.C7         Recorded: 10/29/09              Delete

 All the Delete's above are links. All have the same href (and text
 obviously). My question is, using FireWatir, what would be the best
 way to hone in a specific item to delete? I am particularly interested
 in a scenario where I know ahead of time which entry to delete based
 on the code in the 2nd column, then selecting the delete link that
 follows that text entry.

 Also, while I'm at it, I would like to be able to retrieve any other
 surrounding column of text too, such as the recorded date timestamp in
 the 3rd column above.

 Thanks in advance!
--~--~-~--~~~---~--~~
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: Hi, I have the following on my page... 8068 7E.01.73.6D.40.50.CE.D5 Recorded: 10/29/09 Delete 8067 7E.01.73.6D.40.4F.CE.CE Recorded: 10/29/09 Delete 8065 7E.01.73.6D.40.

2009-11-19 Thread Tiffany Fodor

Oops - sorry about that!  I forgot that tab takes you out of the text
edit box.

Here's the code I was trying to give you:

If the text below is contained in a table, you can do this:

my_table = browser.table(:id, 'table_id')

my_table.rows.each do |row|
  if row.text.include?('7E.01.73.6D.40.50.CE.D5')
row.link(:text, 'Delete').click
  end
end

Hope this helps!

-Tiffany

On Nov 19, 2:53 pm, xguarder shams...@gmail.com wrote:
 Hi, I have the following on my page...

 8068    7E.01.73.6D.40.50.CE.D5         Recorded: 10/29/09              Delete
 8067    7E.01.73.6D.40.4F.CE.CE         Recorded: 10/29/09              Delete
 8065    7E.01.73.6D.40.4E.CE.C7         Recorded: 10/29/09              Delete

 All the Delete's above are links. All have the same href (and text
 obviously). My question is, using FireWatir, what would be the best
 way to hone in a specific item to delete? I am particularly interested
 in a scenario where I know ahead of time which entry to delete based
 on the code in the 2nd column, then selecting the delete link that
 follows that text entry.

 Also, while I'm at it, I would like to be able to retrieve any other
 surrounding column of text too, such as the recorded date timestamp in
 the 3rd column above.

 Thanks in advance!
--~--~-~--~~~---~--~~
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: Hi, I have the following on my page... 8068 7E.01.73.6D.40.50.CE.D5 Recorded: 10/29/09 Delete 8067 7E.01.73.6D.40.4F.CE.CE Recorded: 10/29/09 Delete 8065 7E.01.73.6D.40.4E.CE.C7 Re

2009-11-19 Thread Ethan
you don't really need to loop there, you should just be able to do

my_table.row(:text, /7E\.01\.73\.6D\.40\.50\.CE\.D5/).link(:text,
'Delete').click

On Thu, Nov 19, 2009 at 17:12, Tiffany Fodor tcfo...@comcast.net wrote:


 Oops - sorry about that!  I forgot that tab takes you out of the text
 edit box.

 Here's the code I was trying to give you:

 If the text below is contained in a table, you can do this:

 my_table = browser.table(:id, 'table_id')

 my_table.rows.each do |row|
   if row.text.include?('7E.01.73.6D.40.50.CE.D5')
row.link(:text, 'Delete').click
  end
 end

 Hope this helps!

 -Tiffany

 On Nov 19, 2:53 pm, xguarder shams...@gmail.com wrote:
  Hi, I have the following on my page...
 
  80687E.01.73.6D.40.50.CE.D5 Recorded: 10/29/09
  Delete
  80677E.01.73.6D.40.4F.CE.CE Recorded: 10/29/09
  Delete
  80657E.01.73.6D.40.4E.CE.C7 Recorded: 10/29/09
  Delete
 
  All the Delete's above are links. All have the same href (and text
  obviously). My question is, using FireWatir, what would be the best
  way to hone in a specific item to delete? I am particularly interested
  in a scenario where I know ahead of time which entry to delete based
  on the code in the 2nd column, then selecting the delete link that
  follows that text entry.
 
  Also, while I'm at it, I would like to be able to retrieve any other
  surrounding column of text too, such as the recorded date timestamp in
  the 3rd column above.
 
  Thanks in advance!
 


--~--~-~--~~~---~--~~
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] WatirRecorder

2009-11-19 Thread tester86

Can someone give me the link to where I can download the watirRecorder+
+...as on the homepage it is not there.
--~--~-~--~~~---~--~~
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: happy belated birthday watir.

2009-11-19 Thread Zhimin

Happy Birthday Watir!
Thanks the team and contributors for bringing us the joy of testing!

Regards,
Zhimin Zhan
http://itest2.com - Watir IDE

--~--~-~--~~~---~--~~
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: Hi, I have the following on my page... 8068 7E.01.73.6D.40.50.CE.D5 Recorded: 10/29/09 Delete 8067 7E.01.73.6D.40.4F.CE.CE Recorded: 10/29/09 Delete 8065 7E.01.73.6D.40.4E.CE.C7 Re

2009-11-19 Thread xguarder

Thanks so much to the above 2. Looks like that is working for me now!
Simpler than I thought too.

On Nov 19, 5:22 pm, Ethan notet...@gmail.com wrote:
 you don't really need to loop there, you should just be able to do

 my_table.row(:text, /7E\.01\.73\.6D\.40\.50\.CE\.D5/).link(:text,
 'Delete').click

 On Thu, Nov 19, 2009 at 17:12, Tiffany Fodor tcfo...@comcast.net wrote:

  Oops - sorry about that!  I forgot that tab takes you out of the text
  edit box.

  Here's the code I was trying to give you:

  If the text below is contained in a table, you can do this:

  my_table = browser.table(:id, 'table_id')

  my_table.rows.each do |row|
    if row.text.include?('7E.01.73.6D.40.50.CE.D5')
     row.link(:text, 'Delete').click
   end
  end

  Hope this helps!

  -Tiffany

  On Nov 19, 2:53 pm, xguarder shams...@gmail.com wrote:
   Hi, I have the following on my page...

   8068    7E.01.73.6D.40.50.CE.D5         Recorded: 10/29/09
   Delete
   8067    7E.01.73.6D.40.4F.CE.CE         Recorded: 10/29/09
   Delete
   8065    7E.01.73.6D.40.4E.CE.C7         Recorded: 10/29/09
   Delete

   All the Delete's above are links. All have the same href (and text
   obviously). My question is, using FireWatir, what would be the best
   way to hone in a specific item to delete? I am particularly interested
   in a scenario where I know ahead of time which entry to delete based
   on the code in the 2nd column, then selecting the delete link that
   follows that text entry.

   Also, while I'm at it, I would like to be able to retrieve any other
   surrounding column of text too, such as the recorded date timestamp in
   the 3rd column above.

   Thanks in advance!
--~--~-~--~~~---~--~~
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: WatirRecorder

2009-11-19 Thread Tiffany Fodor

Haven't you asked about this before?

This group doesn't support WatirRecorder.  I'm not sure why it's not
available to download on OpenQA, but if you really need it, I'd
suggest asking the folks on the Watir Recorder community board:

http://clearspace.openqa.org/community/watir_recorder

-Tiffany

On Nov 19, 3:27 pm, tester86 sagar.am...@gmail.com wrote:
 Can someone give me the link to where I can download the watirRecorder+
 +...as on the homepage it is not there.
--~--~-~--~~~---~--~~
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: WatirRecorder

2009-11-19 Thread George

Not to hijack the thread, but why use WatirRecorder?  Isn't it just as
easy to write the code?

On Nov 19, 3:05 pm, Tiffany Fodor tcfo...@comcast.net wrote:
 Haven't you asked about this before?

 This group doesn't support WatirRecorder.  I'm not sure why it's not
 available to download on OpenQA, but if you really need it, I'd
 suggest asking the folks on the Watir Recorder community board:

 http://clearspace.openqa.org/community/watir_recorder

 -Tiffany

 On Nov 19, 3:27 pm, tester86 sagar.am...@gmail.com wrote:



  Can someone give me the link to where I can download the watirRecorder+
  +...as on the homepage it is not there.
--~--~-~--~~~---~--~~
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: WatirRecorder

2009-11-19 Thread Tiffany Fodor

Hi George!

I agree with you and I wouldn't advocate using a recording tool.  IMO,
record-and-play doesn't really buy you much in time savings, and
creates more fragile tests.

I think some people are used to the 'out of the box' test automation
tools that include a recorder.

-Tiffany

On Nov 19, 4:14 pm, George george.sand...@gmail.com wrote:
 Not to hijack the thread, but why use WatirRecorder?  Isn't it just as
 easy to write the code?

 On Nov 19, 3:05 pm, Tiffany Fodor tcfo...@comcast.net wrote:

  Haven't you asked about this before?

  This group doesn't support WatirRecorder.  I'm not sure why it's not
  available to download on OpenQA, but if you really need it, I'd
  suggest asking the folks on the Watir Recorder community board:

 http://clearspace.openqa.org/community/watir_recorder

  -Tiffany

  On Nov 19, 3:27 pm, tester86 sagar.am...@gmail.com wrote:

   Can someone give me the link to where I can download the watirRecorder+
   +...as on the homepage it is not there.
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---