[wtr-general] Re: Delete cookies in Firewatir

2009-11-18 Thread Angrez Singh
How about this:
browser.set_cookie(:name = name, :value = value)
browser.delete_cookie(:name = name)
browser.delete_all_cookies()

I want these methods to be with Browser as cookies are related to browser.
Thoughts?

- Angrez

On Wed, Nov 18, 2009 at 12:28 AM, Bret Pettichord b...@pettichord.comwrote:


 Please make a proposal for the method names and parameters.

 Here is what we have for IE right now.
 http://github.com/bret/watir/blob/master/watir/lib/watir/cookiemanager.rb

 I've never used it. I would like to hear from some people who have. What
 functionality do you use the cookiemanager for?

 Bret

 Angrez Singh wrote:
  Yes, I have seen that preety interesting stuff. Need to see what all
  we can make into FireWatir.
 
  On Tue, Nov 17, 2009 at 4:57 PM, aidy lewis aidy.le...@googlemail.com
  mailto:aidy.le...@googlemail.com wrote:
 
 
  have you seen this by Matt
 
 
 http://sticklebackplastic.com/post/2009/10/20/Advanced-FireWatir-e28093-cheat-sheet.aspx#comment
  ?
 
  Aidy
 
  2009/11/17 Angrez Singh ang...@gmail.com mailto:ang...@gmail.com
 :
   thats what I am waiting for method names. Let me discuss with
  Bret and will
   let you know you can go ahead and put these methods there.
  
   - Angrez
  
   On Tue, Nov 17, 2009 at 4:50 PM, aidy lewis
  aidy.le...@googlemail.com mailto:aidy.le...@googlemail.com
   wrote:
  
   Are you going to take this up then, otherwise I can do it, if you
   provide your preferred method names.
  
   Not sure how we are going to do it in Watir though.
  
   Aidy
  
   2009/11/17 Angrez Singh ang...@gmail.com
  mailto:ang...@gmail.com:
:) correct thats the approach. Was discussing with Bret the
  syntax,
method
names so that its consistent with IE and FF.
   
- Angrez
   
On Tue, Nov 17, 2009 at 4:44 PM, aidy lewis
  aidy.le...@googlemail.com mailto:aidy.le...@googlemail.com
wrote:
   
Angrez,
   
Have you included cookie manipulation methods in FireWatir yet?
   
If not I was think of using the Mozilla Classes
   
https://developer.mozilla.org/en/Code_snippets/Cookies
   
Thanks
   
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: firewatir- I cannot close the second popup.

2009-11-18 Thread Angrez Singh
You can use AutoIT to close the pop ups if you are working on Windows. As of
now this is the only solution.

- Angrez

On Wed, Nov 18, 2009 at 7:05 AM, Shlomit Gazit shlomitpatr...@gmail.comwrote:


 Angrez,
 Please let me know if you have any new results.

 On Nov 16, 10:00 am, Shlomit Gazit shlomitpatr...@gmail.com wrote:
  Pallavi, Angrez hello,
 
  Thank you for the replies.
 
  I was trying your suggestion:
 
  $ff.startClicker(ok)
  $ff.startClicker(ok)
  $ff.image(:name, /elete/).click
 
  But it still didn't close thepopup.
 
  I am able to do it with watir like this:
 
  Thread.new{system(rubyw myClicker.rb)}
  $ie.image(:name, /elete/).click
  Thread.new { system(rubyw myClicker.rb)}
 
  and I have a file: myClicker.rb with the code:
 
  $LOAD_PATH.unshift File.join(File.dirname(__FILE__), '..') if $0 ==
  __FILE__
 
  require 'watir/WindowHelper'
 
  $helper = WindowHelper.new
  $helper.push_confirm_button_ok()
 
  It is not always clicking the popups so sometimes I have to click on
  either of the popups manually, and the test is waiting for the click.
  But basically it is not breaking the test.
 
  On Nov 16, 4:06 am, Angrez Singh ang...@gmail.com wrote:
 
   It might work, because both of them will be looking for the pop up to
 close.
   When you click the delete button pop up will come, not sure which
 thread
   will close the pop up. Butsecondone will closesecondpop up if you are
   using Auto IT.
   In Firewatir the concept is bit different, I don't use AutoIT to close
 the
   pop up to make it cross-platform. So if you are on Windows you can use
   AutoIt in two different threads and tell them to close the pop ups.
 
   - Angrez
 
   On Mon, Nov 16, 2009 at 5:24 PM, Pallavi Sharma 
 write2pall...@gmail.comwrote:
 
Can't you start two start clickers at once? Will they both try to
 access
the first pop up and if found close it?
 
So  what i am suggesting is this:
 
ff.startClicker(ok)
$ff.startClicker(ok)
$ff.image(:name, /elete/).click
 
Wont this work Angrez?
 
I had a similar situation for IE, and i used the Auto IT script to
 handle
   popupby calling them in separate threads but both invoked at the same
time.
 
--
Pallavi.
 
On Mon, Nov 16, 2009 at 3:17 PM, Angrez Singh ang...@gmail.com
 wrote:
 
It would be bit tricky to handle thesecondpop up. I'll try here at
 my
end and if possible will come up with some solution, but as of now
 it might
not be possible.
 
Thanks,
Angrez
 
On Mon, Nov 16, 2009 at 1:14 PM, Shlomit Gazit 
 shlomitpatr...@gmail.comwrote:
 
Anybody??
 
On Nov 13, 4:43 pm, Shlomit Gazit shlomitpatr...@gmail.com
 wrote:
 Hello,
 
 I am trying to handlepopupswithfirewatir.
 My scenario is clicking on delete button, apopupconfirmation will
 open and I should click ok.  After that asecondpopupwill open
 and
 I should write the reason and click ok.
 
 So far I was able to click on the delete button and
 thesecondpopup
 will appear but not closed (the firstpopupis not appearing, but I
 assume it is by design).
 
 How can I close thesecondpopup?
 
 Myfirewatircode is:
 
 $ff.startClicker(ok)
 $ff.image(:name, /elete/).click
 $ff.startClicker(ok)
 


--~--~-~--~~~---~--~~
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-18 Thread aidy lewis

Angrez,

Sounds good. Would you like me to write them?

I can either push them to my fork or just email them to you.

I will be just doing the FireWatir ones, as I am unsure on what method
we should use for Watir.

Will start with and include tests.

Aidy

2009/11/18 Angrez Singh ang...@gmail.com:
 How about this:
 browser.set_cookie(:name = name, :value = value)
 browser.delete_cookie(:name = name)
 browser.delete_all_cookies()

 I want these methods to be with Browser as cookies are related to browser.
 Thoughts?

 - Angrez

 On Wed, Nov 18, 2009 at 12:28 AM, Bret Pettichord b...@pettichord.com
 wrote:

 Please make a proposal for the method names and parameters.

 Here is what we have for IE right now.
 http://github.com/bret/watir/blob/master/watir/lib/watir/cookiemanager.rb

 I've never used it. I would like to hear from some people who have. What
 functionality do you use the cookiemanager for?

 Bret

 Angrez Singh wrote:
  Yes, I have seen that preety interesting stuff. Need to see what all
  we can make into FireWatir.
 
  On Tue, Nov 17, 2009 at 4:57 PM, aidy lewis aidy.le...@googlemail.com
  mailto:aidy.le...@googlemail.com wrote:
 
 
      have you seen this by Matt
 
 
  http://sticklebackplastic.com/post/2009/10/20/Advanced-FireWatir-e28093-cheat-sheet.aspx#comment
      ?
 
      Aidy
 
      2009/11/17 Angrez Singh ang...@gmail.com
  mailto:ang...@gmail.com:
       thats what I am waiting for method names. Let me discuss with
      Bret and will
       let you know you can go ahead and put these methods there.
      
       - Angrez
      
       On Tue, Nov 17, 2009 at 4:50 PM, aidy lewis
      aidy.le...@googlemail.com mailto:aidy.le...@googlemail.com
       wrote:
      
       Are you going to take this up then, otherwise I can do it, if you
       provide your preferred method names.
      
       Not sure how we are going to do it in Watir though.
      
       Aidy
      
       2009/11/17 Angrez Singh ang...@gmail.com
      mailto:ang...@gmail.com:
        :) correct thats the approach. Was discussing with Bret the
      syntax,
        method
        names so that its consistent with IE and FF.
       
        - Angrez
       
        On Tue, Nov 17, 2009 at 4:44 PM, aidy lewis
      aidy.le...@googlemail.com mailto:aidy.le...@googlemail.com
        wrote:
       
        Angrez,
       
        Have you included cookie manipulation methods in FireWatir
  yet?
       
        If not I was think of using the Mozilla Classes
       
        https://developer.mozilla.org/en/Code_snippets/Cookies
       
        Thanks
       
        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-18 Thread Angrez Singh
Aidy,

You can go ahead and write it. I'll write the corresponding methods in
Watir.

-Angrez

On Wed, Nov 18, 2009 at 3:56 PM, aidy lewis aidy.le...@googlemail.comwrote:


 Angrez,

 Sounds good. Would you like me to write them?

 I can either push them to my fork or just email them to you.

 I will be just doing the FireWatir ones, as I am unsure on what method
 we should use for Watir.

 Will start with and include tests.

 Aidy

 2009/11/18 Angrez Singh ang...@gmail.com:
  How about this:
  browser.set_cookie(:name = name, :value = value)
  browser.delete_cookie(:name = name)
  browser.delete_all_cookies()
 
  I want these methods to be with Browser as cookies are related to
 browser.
  Thoughts?
 
  - Angrez
 
  On Wed, Nov 18, 2009 at 12:28 AM, Bret Pettichord b...@pettichord.com
  wrote:
 
  Please make a proposal for the method names and parameters.
 
  Here is what we have for IE right now.
 
 http://github.com/bret/watir/blob/master/watir/lib/watir/cookiemanager.rb
 
  I've never used it. I would like to hear from some people who have. What
  functionality do you use the cookiemanager for?
 
  Bret
 
  Angrez Singh wrote:
   Yes, I have seen that preety interesting stuff. Need to see what all
   we can make into FireWatir.
  
   On Tue, Nov 17, 2009 at 4:57 PM, aidy lewis 
 aidy.le...@googlemail.com
   mailto:aidy.le...@googlemail.com wrote:
  
  
   have you seen this by Matt
  
  
  
 http://sticklebackplastic.com/post/2009/10/20/Advanced-FireWatir-e28093-cheat-sheet.aspx#comment
   ?
  
   Aidy
  
   2009/11/17 Angrez Singh ang...@gmail.com
   mailto:ang...@gmail.com:
thats what I am waiting for method names. Let me discuss with
   Bret and will
let you know you can go ahead and put these methods there.
   
- Angrez
   
On Tue, Nov 17, 2009 at 4:50 PM, aidy lewis
   aidy.le...@googlemail.com mailto:aidy.le...@googlemail.com
wrote:
   
Are you going to take this up then, otherwise I can do it, if
 you
provide your preferred method names.
   
Not sure how we are going to do it in Watir though.
   
Aidy
   
2009/11/17 Angrez Singh ang...@gmail.com
   mailto:ang...@gmail.com:
 :) correct thats the approach. Was discussing with Bret the
   syntax,
 method
 names so that its consistent with IE and FF.

 - Angrez

 On Tue, Nov 17, 2009 at 4:44 PM, aidy lewis
   aidy.le...@googlemail.com mailto:aidy.le...@googlemail.com
 wrote:

 Angrez,

 Have you included cookie manipulation methods in FireWatir
   yet?

 If not I was think of using the Mozilla Classes

 https://developer.mozilla.org/en/Code_snippets/Cookies

 Thanks

 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-18 Thread QAguy

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-18 Thread Ethan
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?

On Wed, Nov 18, 2009 at 07:15, Angrez Singh ang...@gmail.com wrote:

 Aidy,

 You can go ahead and write it. I'll write the corresponding methods in
 Watir.

 -Angrez


 On Wed, Nov 18, 2009 at 3:56 PM, aidy lewis aidy.le...@googlemail.comwrote:


 Angrez,

 Sounds good. Would you like me to write them?

 I can either push them to my fork or just email them to you.

 I will be just doing the FireWatir ones, as I am unsure on what method
 we should use for Watir.

 Will start with and include tests.

 Aidy

 2009/11/18 Angrez Singh ang...@gmail.com:
  How about this:
  browser.set_cookie(:name = name, :value = value)
  browser.delete_cookie(:name = name)
  browser.delete_all_cookies()
 
  I want these methods to be with Browser as cookies are related to
 browser.
  Thoughts?
 
  - Angrez
 
  On Wed, Nov 18, 2009 at 12:28 AM, Bret Pettichord b...@pettichord.com
  wrote:
 
  Please make a proposal for the method names and parameters.
 
  Here is what we have for IE right now.
 
 http://github.com/bret/watir/blob/master/watir/lib/watir/cookiemanager.rb
 
  I've never used it. I would like to hear from some people who have.
 What
  functionality do you use the cookiemanager for?
 
  Bret
 
  Angrez Singh wrote:
   Yes, I have seen that preety interesting stuff. Need to see what all
   we can make into FireWatir.
  
   On Tue, Nov 17, 2009 at 4:57 PM, aidy lewis 
 aidy.le...@googlemail.com
   mailto:aidy.le...@googlemail.com wrote:
  
  
   have you seen this by Matt
  
  
  
 http://sticklebackplastic.com/post/2009/10/20/Advanced-FireWatir-e28093-cheat-sheet.aspx#comment
   ?
  
   Aidy
  
   2009/11/17 Angrez Singh ang...@gmail.com
   mailto:ang...@gmail.com:
thats what I am waiting for method names. Let me discuss with
   Bret and will
let you know you can go ahead and put these methods there.
   
- Angrez
   
On Tue, Nov 17, 2009 at 4:50 PM, aidy lewis
   aidy.le...@googlemail.com mailto:aidy.le...@googlemail.com
wrote:
   
Are you going to take this up then, otherwise I can do it, if
 you
provide your preferred method names.
   
Not sure how we are going to do it in Watir though.
   
Aidy
   
2009/11/17 Angrez Singh ang...@gmail.com
   mailto:ang...@gmail.com:
 :) correct thats the approach. Was discussing with Bret the
   syntax,
 method
 names so that its consistent with IE and FF.

 - Angrez

 On Tue, Nov 17, 2009 at 4:44 PM, aidy lewis
   aidy.le...@googlemail.com mailto:aidy.le...@googlemail.com
 wrote:

 Angrez,

 Have you included cookie manipulation methods in FireWatir
   yet?

 If not I was think of using the Mozilla Classes

 https://developer.mozilla.org/en/Code_snippets/Cookies

 Thanks

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

2009-11-18 Thread Paul Rogers
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-18 Thread Lisa Crispin
Happy Birthday! That is so cool! Did you tweet this?

On Wed, Nov 18, 2009 at 1:53 PM, 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

 



-- 
Lisa Crispin
Co-author with Janet Gregory, _Agile Testing: A Practical Guide for Testers
and Agile Teams_ (Addison-Wesley 2009)
http://lisacrispin.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-18 Thread Angrez Singh
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.comwrote:


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