[wtr-general] Re: Need help about startClicker

2009-10-29 Thread Bindhu

Hi Raveendran,

Thanks a lot for ur reply.
If popup does not appear also it is returning 'true'.

 if ouput ='true'
   puts pop up
   startClicker( OK )
 else
 puts no popup
 sleep(5)
 $ie = Watir::IE.find(:url,/search.do/)
 $ie = Watir::IE.find(:url,/secure/)
 $ie.frame(:name, mainFrame).button(:id,submitBtn).click
end
It is handling popup if appears but not executing the remaning code.
And if popup does not appear it is still waiting for it.
Am I using to your code correctly. Please let me know..

Thanks

On Oct 29, 10:50 am, Raveendran P jazzezr...@gmail.com wrote:
 Hi Bindhu,

 Sorry for interrupt but may be this will help to solve ur problem.

 Try with this article -- http:// goog_1256773908603bit.ly/3TbxYr
 http://bit.ly/3TbxYr and
 Replace the window name notepad' to your pop-up window name.

 Thanks





 On Thu, Oct 29, 2009 at 11:06 AM, Bindhu udayarekha2...@gmail.com wrote:

  Hi Zeljko,

  I am really sorry that I have not clearly described what exactly I
  want to do in my previous query.
  There is popup with warning message will appear, if we try to create
  the customer with the existing customer details. I wanted to click OK
  to continue with remaning functionality.
  I am using startClicker(). It is handling Popup when ever it appears
  and executing the remaining code. But the problem here is if the popup
  does not appear script is waiting for it appear and NOT proceeding
  with remaining script.

  Can it handle this situation by getting the property of the Popup? If
  so how can get the property of it.

  Thanks In Advance

  On Oct 21, 1:10 pm, Željko Filipin zeljko.fili...@wa-research.ch
  wrote:
   On Wed, Oct 21, 2009 at 6:37 AM, Bindhu udayarekha2...@gmail.com
  wrote:
I need to skip the pop up when ever it appear.

   And the problem is?

   Have you read this?

  http://wiki.openqa.org/display/WTR/Pop+Ups

   Željko
   --http://watirpodcast.com/

 --
 Regards,
 P.Raveendranhttp://raveendran.wordpress.com- Hide quoted text -

 - Show quoted text -
--~--~-~--~~~---~--~~
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: Need help about startClicker

2009-10-29 Thread Raveendran P
Hi Bindhu,

Try  with this change

 if ouput == true

  else

end

1. Replace = to ==.
2.Replace 'true' to true -- it returns true -- it is not a string

Awaiting your reply

On Thu, Oct 29, 2009 at 12:20 PM, Bindhu udayarekha2...@gmail.com wrote:


 Hi Raveendran,

 Thanks a lot for ur reply.
 If popup does not appear also it is returning 'true'.

  if ouput ='true'
   puts pop up
   startClicker( OK )
  else
 puts no popup
 sleep(5)
 $ie = Watir::IE.find(:url,/search.do/)
 $ie = Watir::IE.find(:url,/secure/)
 $ie.frame(:name, mainFrame).button(:id,submitBtn).click
 end
 It is handling popup if appears but not executing the remaning code.
 And if popup does not appear it is still waiting for it.
 Am I using to your code correctly. Please let me know..

 Thanks

 On Oct 29, 10:50 am, Raveendran P jazzezr...@gmail.com wrote:
  Hi Bindhu,
 
  Sorry for interrupt but may be this will help to solve ur problem.
 
  Try with this article -- http:// goog_1256773908603bit.ly/3TbxYr
  http://bit.ly/3TbxYr and
  Replace the window name notepad' to your pop-up window name.
 
  Thanks
 
 
 
 
 
  On Thu, Oct 29, 2009 at 11:06 AM, Bindhu udayarekha2...@gmail.com
 wrote:
 
   Hi Zeljko,
 
   I am really sorry that I have not clearly described what exactly I
   want to do in my previous query.
   There is popup with warning message will appear, if we try to create
   the customer with the existing customer details. I wanted to click OK
   to continue with remaning functionality.
   I am using startClicker(). It is handling Popup when ever it appears
   and executing the remaining code. But the problem here is if the popup
   does not appear script is waiting for it appear and NOT proceeding
   with remaining script.
 
   Can it handle this situation by getting the property of the Popup? If
   so how can get the property of it.
 
   Thanks In Advance
 
   On Oct 21, 1:10 pm, Željko Filipin zeljko.fili...@wa-research.ch
   wrote:
On Wed, Oct 21, 2009 at 6:37 AM, Bindhu udayarekha2...@gmail.com
   wrote:
 I need to skip the pop up when ever it appear.
 
And the problem is?
 
Have you read this?
 
   http://wiki.openqa.org/display/WTR/Pop+Ups
 
Željko
--http://watirpodcast.com/
 
  --
  Regards,
  P.Raveendranhttp://raveendran.wordpress.com- Hide quoted text -
 
  - Show quoted text -
 



-- 
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: Need help about startClicker

2009-10-29 Thread Bindhu

Hi Raveendran,

It is still returning true even though popup does not appear.
The below is the code:
if ouput == true
   puts pop up
   startClicker( OK )
   else
 puts no popup
$ie = Watir::IE.find(:url,/search.do/)
sleep(5)
$ie.frame(:name, mainFrame).button(:id,submitBtn).click
$ie.frame(:name, mainFrame).button(:id,addProducts).click

Thanks


On Oct 29, 11:55 am, Raveendran P jazzezr...@gmail.com wrote:
 Hi Bindhu,

 Try  with this change

  if ouput == true

   else

 end

 1. Replace = to ==.
 2.Replace 'true' to true -- it returns true -- it is not a string

 Awaiting your reply





 On Thu, Oct 29, 2009 at 12:20 PM, Bindhu udayarekha2...@gmail.com wrote:

  Hi Raveendran,

  Thanks a lot for ur reply.
  If popup does not appear also it is returning 'true'.

   if ouput ='true'
    puts pop up
    startClicker( OK )
   else
      puts no popup
      sleep(5)
      $ie = Watir::IE.find(:url,/search.do/)
      $ie = Watir::IE.find(:url,/secure/)
      $ie.frame(:name, mainFrame).button(:id,submitBtn).click
  end
  It is handling popup if appears but not executing the remaning code.
  And if popup does not appear it is still waiting for it.
  Am I using to your code correctly. Please let me know..

  Thanks

  On Oct 29, 10:50 am, Raveendran P jazzezr...@gmail.com wrote:
   Hi Bindhu,

   Sorry for interrupt but may be this will help to solve ur problem.

   Try with this article -- http:// goog_1256773908603bit.ly/3TbxYr
   http://bit.ly/3TbxYr and
   Replace the window name notepad' to your pop-up window name.

   Thanks

   On Thu, Oct 29, 2009 at 11:06 AM, Bindhu udayarekha2...@gmail.com
  wrote:

Hi Zeljko,

I am really sorry that I have not clearly described what exactly I
want to do in my previous query.
There is popup with warning message will appear, if we try to create
the customer with the existing customer details. I wanted to click OK
to continue with remaning functionality.
I am using startClicker(). It is handling Popup when ever it appears
and executing the remaining code. But the problem here is if the popup
does not appear script is waiting for it appear and NOT proceeding
with remaining script.

Can it handle this situation by getting the property of the Popup? If
so how can get the property of it.

Thanks In Advance

On Oct 21, 1:10 pm, Željko Filipin zeljko.fili...@wa-research.ch
wrote:
 On Wed, Oct 21, 2009 at 6:37 AM, Bindhu udayarekha2...@gmail.com
wrote:
  I need to skip the pop up when ever it appear.

 And the problem is?

 Have you read this?

http://wiki.openqa.org/display/WTR/Pop+Ups

 Željko
 --http://watirpodcast.com/

   --
   Regards,
   P.Raveendranhttp://raveendran.wordpress.com-Hide quoted text -

   - Show quoted text -

 --
 Regards,
 P.Raveendranhttp://raveendran.wordpress.com- Hide quoted text -

 - Show quoted text -
--~--~-~--~~~---~--~~
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: Need help about startClicker

2009-10-29 Thread Raveendran P
Hi Bindhu,

 Its Strange ! There is not possible to return true but it occurs now.

Let us wait for Zeljko's update.

Thanks



On Thu, Oct 29, 2009 at 12:39 PM, Bindhu udayarekha2...@gmail.com wrote:


 Hi Raveendran,

 It is still returning true even though popup does not appear.
 The below is the code:
 if ouput == true
   puts pop up
   startClicker( OK )
   else
 puts no popup
 $ie = Watir::IE.find(:url,/search.do/)
 sleep(5)
 $ie.frame(:name, mainFrame).button(:id,submitBtn).click
 $ie.frame(:name, mainFrame).button(:id,addProducts).click

 Thanks


 On Oct 29, 11:55 am, Raveendran P jazzezr...@gmail.com wrote:
  Hi Bindhu,
 
  Try  with this change
 
   if ouput == true
 
else
 
  end
 
  1. Replace = to ==.
  2.Replace 'true' to true -- it returns true -- it is not a string
 
  Awaiting your reply
 
 
 
 
 
  On Thu, Oct 29, 2009 at 12:20 PM, Bindhu udayarekha2...@gmail.com
 wrote:
 
   Hi Raveendran,
 
   Thanks a lot for ur reply.
   If popup does not appear also it is returning 'true'.
 
if ouput ='true'
 puts pop up
 startClicker( OK )
else
   puts no popup
   sleep(5)
   $ie = Watir::IE.find(:url,/search.do/)
   $ie = Watir::IE.find(:url,/secure/)
   $ie.frame(:name, mainFrame).button(:id,submitBtn).click
   end
   It is handling popup if appears but not executing the remaning code.
   And if popup does not appear it is still waiting for it.
   Am I using to your code correctly. Please let me know..
 
   Thanks
 
   On Oct 29, 10:50 am, Raveendran P jazzezr...@gmail.com wrote:
Hi Bindhu,
 
Sorry for interrupt but may be this will help to solve ur problem.
 
Try with this article -- http:// goog_1256773908603bit.ly/3TbxYr
http://bit.ly/3TbxYr and
Replace the window name notepad' to your pop-up window name.
 
Thanks
 
On Thu, Oct 29, 2009 at 11:06 AM, Bindhu udayarekha2...@gmail.com
   wrote:
 
 Hi Zeljko,
 
 I am really sorry that I have not clearly described what exactly I
 want to do in my previous query.
 There is popup with warning message will appear, if we try to
 create
 the customer with the existing customer details. I wanted to click
 OK
 to continue with remaning functionality.
 I am using startClicker(). It is handling Popup when ever it
 appears
 and executing the remaining code. But the problem here is if the
 popup
 does not appear script is waiting for it appear and NOT proceeding
 with remaining script.
 
 Can it handle this situation by getting the property of the Popup?
 If
 so how can get the property of it.
 
 Thanks In Advance
 
 On Oct 21, 1:10 pm, Željko Filipin zeljko.fili...@wa-research.ch
 wrote:
  On Wed, Oct 21, 2009 at 6:37 AM, Bindhu 
 udayarekha2...@gmail.com
 wrote:
   I need to skip the pop up when ever it appear.
 
  And the problem is?
 
  Have you read this?
 
 http://wiki.openqa.org/display/WTR/Pop+Ups
 
  Željko
  --http://watirpodcast.com/
 
--
Regards,
P.Raveendranhttp://raveendran.wordpress.com-Hide quoted text -
 
- Show quoted text -
 
  --
  Regards,
  P.Raveendranhttp://raveendran.wordpress.com- Hide quoted text -
 
  - Show quoted text -
 



-- 
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] ie.modal_dialog(:title, 'Tile') problem

2009-10-29 Thread david

Have a section of code that is waiting for a modal dialog to appear
which is visible with the title ‘'Batch Update -- Web Page Dialog’

modal = @ie.modal_dialog(:title, 'Batch Update -- Web Page Dialog')
modal.wait
modal.button(:value,'Yes').click_no_wait

However the dialog is not being found by title.

Is there a problem with finding modal_dialog by title? Is there
another way to do this? I am using Ruby 1.8.6

I tried just modal = @ie.modal_dialog
which should work according to the API documentation but I see there
is a problem with this approach, even though there can be only one
modal dialog at a time on screen and this seems like an ideal way to
attach to a modal dialog. I get the following error:

IE#modal_dialog not supported with the current version of Ruby
(1.8.6).
See http://jira.openqa.org/browse/WTR-2 for details.
undefined method `connect_unknown' for WIN32OLE:Class

David
--~--~-~--~~~---~--~~
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: Need help about startClicker

2009-10-29 Thread Bindhu

Hi Ravenedraan,

I guess why it is returning true.
The title of the popup is Microsoft Internet Explorer.So I said
 window_name_opened('Microsoft Internet Explorer').

IE window which is opend to execute my application has title
Microsoft Internet Explorer. That is reason why it is returning
true even though the popup does not appear.

If my guess is correct, is there any other alternat way to handle the
popup... like based on the warning message printed on the popup

Thanks

On Oct 29, 12:15 pm, Raveendran P jazzezr...@gmail.com wrote:
 Hi Bindhu,

  Its Strange ! There is not possible to return true but it occurs now.

 Let us wait for Zeljko's update.

 Thanks





 On Thu, Oct 29, 2009 at 12:39 PM, Bindhu udayarekha2...@gmail.com wrote:

  Hi Raveendran,

  It is still returning true even though popup does not appear.
  The below is the code:
  if ouput == true
    puts pop up
    startClicker( OK )
    else
      puts no popup
  $ie = Watir::IE.find(:url,/search.do/)
  sleep(5)
  $ie.frame(:name, mainFrame).button(:id,submitBtn).click
  $ie.frame(:name, mainFrame).button(:id,addProducts).click

  Thanks

  On Oct 29, 11:55 am, Raveendran P jazzezr...@gmail.com wrote:
   Hi Bindhu,

   Try  with this change

    if ouput == true

     else

   end

   1. Replace = to ==.
   2.Replace 'true' to true -- it returns true -- it is not a string

   Awaiting your reply

   On Thu, Oct 29, 2009 at 12:20 PM, Bindhu udayarekha2...@gmail.com
  wrote:

Hi Raveendran,

Thanks a lot for ur reply.
If popup does not appear also it is returning 'true'.

 if ouput ='true'
  puts pop up
  startClicker( OK )
 else
    puts no popup
    sleep(5)
    $ie = Watir::IE.find(:url,/search.do/)
    $ie = Watir::IE.find(:url,/secure/)
    $ie.frame(:name, mainFrame).button(:id,submitBtn).click
end
It is handling popup if appears but not executing the remaning code.
And if popup does not appear it is still waiting for it.
Am I using to your code correctly. Please let me know..

Thanks

On Oct 29, 10:50 am, Raveendran P jazzezr...@gmail.com wrote:
 Hi Bindhu,

 Sorry for interrupt but may be this will help to solve ur problem.

 Try with this article -- http:// goog_1256773908603bit.ly/3TbxYr
 http://bit.ly/3TbxYr and
 Replace the window name notepad' to your pop-up window name.

 Thanks

 On Thu, Oct 29, 2009 at 11:06 AM, Bindhu udayarekha2...@gmail.com
wrote:

  Hi Zeljko,

  I am really sorry that I have not clearly described what exactly I
  want to do in my previous query.
  There is popup with warning message will appear, if we try to
  create
  the customer with the existing customer details. I wanted to click
  OK
  to continue with remaning functionality.
  I am using startClicker(). It is handling Popup when ever it
  appears
  and executing the remaining code. But the problem here is if the
  popup
  does not appear script is waiting for it appear and NOT proceeding
  with remaining script.

  Can it handle this situation by getting the property of the Popup?
  If
  so how can get the property of it.

  Thanks In Advance

  On Oct 21, 1:10 pm, Željko Filipin zeljko.fili...@wa-research.ch
  wrote:
   On Wed, Oct 21, 2009 at 6:37 AM, Bindhu 
  udayarekha2...@gmail.com
  wrote:
I need to skip the pop up when ever it appear.

   And the problem is?

   Have you read this?

  http://wiki.openqa.org/display/WTR/Pop+Ups

   Željko
   --http://watirpodcast.com/

 --
 Regards,
 P.Raveendranhttp://raveendran.wordpress.com-Hidequoted text -

 - Show quoted text -

   --
   Regards,
   P.Raveendranhttp://raveendran.wordpress.com-Hide quoted text -

   - Show quoted text -

 --
 Regards,
 P.Raveendranhttp://raveendran.wordpress.com- Hide quoted text -

 - Show quoted text -
--~--~-~--~~~---~--~~
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: Need help about startClicker

2009-10-29 Thread zakir hussain
Hi Bindhu,

Why not try with auto it to handle pop-ups. Refer to the links given below

http://wiki.openqa.org/display/WTR/JavaScript+Pop+Ups

http://wiki.openqa.org/display/WTR/Pop+Ups%20http://wiki.openqa.org/display/WTR/Pop+Ups


- zakir



On Thu, Oct 29, 2009 at 12:58 PM, Bindhu udayarekha2...@gmail.com wrote:


 Hi Ravenedraan,

 I guess why it is returning true.
 The title of the popup is Microsoft Internet Explorer.So I said
  window_name_opened('Microsoft Internet Explorer').

 IE window which is opend to execute my application has title
 Microsoft Internet Explorer. That is reason why it is returning
 true even though the popup does not appear.

 If my guess is correct, is there any other alternat way to handle the
 popup... like based on the warning message printed on the popup

 Thanks

 On Oct 29, 12:15 pm, Raveendran P jazzezr...@gmail.com wrote:
  Hi Bindhu,
 
   Its Strange ! There is not possible to return true but it occurs now.
 
  Let us wait for Zeljko's update.
 
  Thanks
 
 
 
 
 
  On Thu, Oct 29, 2009 at 12:39 PM, Bindhu udayarekha2...@gmail.com
 wrote:
 
   Hi Raveendran,
 
   It is still returning true even though popup does not appear.
   The below is the code:
   if ouput == true
 puts pop up
 startClicker( OK )
 else
   puts no popup
   $ie = Watir::IE.find(:url,/search.do/)
   sleep(5)
   $ie.frame(:name, mainFrame).button(:id,submitBtn).click
   $ie.frame(:name, mainFrame).button(:id,addProducts).click
 
   Thanks
 
   On Oct 29, 11:55 am, Raveendran P jazzezr...@gmail.com wrote:
Hi Bindhu,
 
Try  with this change
 
 if ouput == true
 
  else
 
end
 
1. Replace = to ==.
2.Replace 'true' to true -- it returns true -- it is not a string
 
Awaiting your reply
 
On Thu, Oct 29, 2009 at 12:20 PM, Bindhu udayarekha2...@gmail.com
   wrote:
 
 Hi Raveendran,
 
 Thanks a lot for ur reply.
 If popup does not appear also it is returning 'true'.
 
  if ouput ='true'
   puts pop up
   startClicker( OK )
  else
 puts no popup
 sleep(5)
 $ie = Watir::IE.find(:url,/search.do/)
 $ie = Watir::IE.find(:url,/secure/)
 $ie.frame(:name, mainFrame).button(:id,submitBtn).click
 end
 It is handling popup if appears but not executing the remaning
 code.
 And if popup does not appear it is still waiting for it.
 Am I using to your code correctly. Please let me know..
 
 Thanks
 
 On Oct 29, 10:50 am, Raveendran P jazzezr...@gmail.com wrote:
  Hi Bindhu,
 
  Sorry for interrupt but may be this will help to solve ur
 problem.
 
  Try with this article -- http:// goog_1256773908603
 bit.ly/3TbxYr
  http://bit.ly/3TbxYr and
  Replace the window name notepad' to your pop-up window name.
 
  Thanks
 
  On Thu, Oct 29, 2009 at 11:06 AM, Bindhu 
 udayarekha2...@gmail.com
 wrote:
 
   Hi Zeljko,
 
   I am really sorry that I have not clearly described what
 exactly I
   want to do in my previous query.
   There is popup with warning message will appear, if we try to
   create
   the customer with the existing customer details. I wanted to
 click
   OK
   to continue with remaning functionality.
   I am using startClicker(). It is handling Popup when ever it
   appears
   and executing the remaining code. But the problem here is if
 the
   popup
   does not appear script is waiting for it appear and NOT
 proceeding
   with remaining script.
 
   Can it handle this situation by getting the property of the
 Popup?
   If
   so how can get the property of it.
 
   Thanks In Advance
 
   On Oct 21, 1:10 pm, Željko Filipin 
 zeljko.fili...@wa-research.ch
   wrote:
On Wed, Oct 21, 2009 at 6:37 AM, Bindhu 
   udayarekha2...@gmail.com
   wrote:
 I need to skip the pop up when ever it appear.
 
And the problem is?
 
Have you read this?
 
   http://wiki.openqa.org/display/WTR/Pop+Ups
 
Željko
--http://watirpodcast.com/
 
  --
  Regards,
  P.Raveendranhttp://raveendran.wordpress.com-Hidequoted text -
 
  - Show quoted text -
 
--
Regards,
P.Raveendranhttp://raveendran.wordpress.com-Hide quoted text -
 
- Show quoted text -
 
  --
  Regards,
  P.Raveendranhttp://raveendran.wordpress.com- Hide quoted text -
 
  - Show quoted text -
 



-- 
Best Regards

zakir

--~--~-~--~~~---~--~~
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, AutoIT, Window Title and Regular Expression

2009-10-29 Thread SMF SMF
For me the *Ruby Script:* is working.


-Thanks


On Thu, Oct 29, 2009 at 12:34 PM, Pallavi Sharma write2pall...@gmail.comwrote:

 Hi

 Watir auto it implementation is not working if i use the REGEXPTITLE of
 auto it with it. The same script written directly in AutoIT works although.

 Does anyone knows why is this happening?

 Is something wrong with my script or is this not supported?

 *Ruby Script:*

  require 'win32ole'

 autoit = WIN32OLE.new('AutoItX3.Control')
 ret = autoit.WinWait([REGEXPTITLE:.*pad.*])
 autoit.WinClose([REGEXPTITLE:.*pad.*])


 *AutoIT Script*
 *
 *
 *
 WinWait([REGEXPTITLE:.*pad.*])
 WinClose([REGEXPTITLE:.*pad.*])


 Anyone here please help.

 Thanks,

 --
 Pallavi
 *

 


--~--~-~--~~~---~--~~
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, AutoIT, Window Title and Regular Expression

2009-10-29 Thread Željko Filipin
On Thu, Oct 29, 2009 at 8:04 AM, Pallavi Sharma write2pall...@gmail.com
wrote:
 Watir auto it implementation is not working if i use the REGEXPTITLE of
auto it with it. The same script written directly in AutoIT works although.

I have played with autoit a few months ago, also trying to use regular
expressions. Watir installs a smaller version of autoit, that has only a
subset of full autoit functionality, and egular expression support is not
there.

Željko
--
watir.com - community manager
watirpodcast.com - host

--~--~-~--~~~---~--~~
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: Multiple select_list(s) with the same name

2009-10-29 Thread Željko Filipin
On Thu, Oct 29, 2009 at 6:12 AM, Pallavi Sharma write2pall...@gmail.com
wrote:
 This after thing is really nice i never knew that do we have a before
also?

This page links to a few pages with a lot of not well know, but really
useful Watir features:

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

Željko
--
watir.com - community manager
watirpodcast.com - host

--~--~-~--~~~---~--~~
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] How to turn to another newline when input the info in the textarea?

2009-10-29 Thread yuping zhong

Hi,

Fill some info in the textarea,I use \n to turn to a newline. But it
doesn't work.

Such as:

@browser.text_field,(ld...).set(Hello,\nHappy new year)

But it still fill as: Hello,Happy new year

I want to be:

Hello,
Happy new year



Any idea of that?

Thanks.

-Zhong
--~--~-~--~~~---~--~~
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, AutoIT, Window Title and Regular Expression

2009-10-29 Thread Pallavi Sharma
Oh Thanks Zeljko

thats what even i was thinking, but i wonder why for SMF SMF the ruby script
works??

nyways thanks Zeljko.

--
Pallavi.

On Thu, Oct 29, 2009 at 2:40 PM, Željko Filipin 
zeljko.fili...@wa-research.ch wrote:

 On Thu, Oct 29, 2009 at 8:04 AM, Pallavi Sharma write2pall...@gmail.com
 wrote:
  Watir auto it implementation is not working if i use the REGEXPTITLE of
 auto it with it. The same script written directly in AutoIT works although.

 I have played with autoit a few months ago, also trying to use regular
 expressions. Watir installs a smaller version of autoit, that has only a
 subset of full autoit functionality, and egular expression support is not
 there.


 Željko
 --
 watir.com - community manager
 watirpodcast.com - host




 


--~--~-~--~~~---~--~~
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, AutoIT, Window Title and Regular Expression

2009-10-29 Thread Željko Filipin
2009/10/29 Pallavi Sharma write2pall...@gmail.com
 i wonder why for SMF SMF the ruby script works??

I did not understand this.

Ž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] Re: Watir, AutoIT, Window Title and Regular Expression

2009-10-29 Thread SMF SMF
Hi Pallavi,

Just for information, AutoIt is installed in my machine also.


Thanks,
SMF

2009/10/29 Pallavi Sharma write2pall...@gmail.com

 Oh Thanks Zeljko

 thats what even i was thinking, but i wonder why for SMF SMF the ruby
 script works??

 nyways thanks Zeljko.

 --
 Pallavi.


 On Thu, Oct 29, 2009 at 2:40 PM, Željko Filipin 
 zeljko.fili...@wa-research.ch wrote:

 On Thu, Oct 29, 2009 at 8:04 AM, Pallavi Sharma write2pall...@gmail.com
 wrote:
  Watir auto it implementation is not working if i use the REGEXPTITLE of
 auto it with it. The same script written directly in AutoIT works although.

 I have played with autoit a few months ago, also trying to use regular
 expressions. Watir installs a smaller version of autoit, that has only a
 subset of full autoit functionality, and egular expression support is not
 there.


 Željko
 --
 watir.com - community manager
 watirpodcast.com - host







 


--~--~-~--~~~---~--~~
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: Unable to update gems and install watir

2009-10-29 Thread Raveendran P
Hi Suriya,

 try with this

gem install watir -v1.6.2

If any error occurs then pls let me know ..

Thanks



On Wed, Oct 28, 2009 at 4:57 PM, ravisuri...@gmail.com 
ravisuri...@gmail.com wrote:


 Hi,

 1.  Installed Ruby (ruby186-26.exe) available at URL ---
 http://rubyforge.org/frs/download.php/29263/ruby186-26.exe

 2. Found that Ruby 186-26 was installed successfully.

 3. Opened a command prompt. Entered the command:
 gem update --system

 Observed the below written error:

 Updating RubyGems...
 Bulk updating Gem source index for: http://gems.rubyforge.org
 Attempting remote update of rubygems-update
 Install required dependency builder? [Yn]  y
 Install required dependency session? [Yn]  y
 Install required dependency hoe-seattlerb? [Yn]  y
 Install required dependency hoe? [Yn]  y
 Install required dependency rubyforge? [Yn]  y
 Install required dependency json_pure? [Yn]  y
 ERROR:  While executing gem ... (Gem::InstallError)
invalid gem format for c:/ruby/lib/ruby/gems/1.8/cache/
 rubyforge-2.0.3.gem


 4. Moving ahead entered the command:

 gem install watir

 Observed the below written error:


 C:\gem install watir
 Install required dependency win32-process? [Yn]  y
 Install required dependency windows-pr? [Yn]  y
 Install required dependency windows-api? [Yn]  y
 Install required dependency win32-api? [Yn]  y
 Select which gem to install for your platform (i386-mswin32)
  1. win32-api 1.4.5 (ruby)
  2. win32-api 1.4.5 (x86-mswin32-60)
  3. Skip this gem
  4. Cancel installation
  1
 Install required dependency test-unit? [Yn]  y
 Install required dependency hoe? [Yn]  y
 Install required dependency rubyforge? [Yn]  y
 ERROR:  While executing gem ... (Gem::InstallError)
invalid gem format for c:/ruby/lib/ruby/gems/1.8/cache/
 rubyforge-2.0.3.gem

 C:\gem install watir
 Install required dependency win32-process? [Yn]  y
 Install required dependency windows-pr? [Yn]  y
 Install required dependency windows-api? [Yn]  y
 Install required dependency win32-api? [Yn]  y
 Select which gem to install for your platform (i386-mswin32)
  1. win32-api 1.4.5 (ruby)
  2. win32-api 1.4.5 (x86-mswin32-60)
  3. Skip this gem
  4. Cancel installation
  2
 Install required dependency win32-api? [Yn]  y
 Select which gem to install for your platform (i386-mswin32)
  1. win32-api 1.4.5 (ruby)
  2. win32-api 1.4.5 (x86-mswin32-60)
  3. Skip this gem
  4. Cancel installation
  2
 ERROR:  While executing gem ... (Gem::InstallError)
invalid gem format for c:/ruby/lib/ruby/gems/1.8/cache/windows-
 pr-1.0.8.gem

 C:\gem install watir
 Install required dependency win32-process? [Yn]  y
 Install required dependency windows-pr? [Yn]  y
 ERROR:  While executing gem ... (Gem::InstallError)
invalid gem format for c:/ruby/lib/ruby/gems/1.8/cache/windows-
 pr-1.0.8.gem

 C:\




 It was not possible to install neither Watir nor update the ruby gems.

 OS: Windows 2003 Server
 Firewall was set to OFF

 *Note: The same was behavior was noticed in Windows XP SP3 too.


 Please help me with, any other ways to overcome from these observed
 behaviors?



 



-- 
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: Watir, AutoIT, Window Title and Regular Expression

2009-10-29 Thread Pallavi Sharma
Another person has replied and stated that the ruby script works with
REGEXPTITLE option

I am sorry i dont know the name, so SMF ; well fine but autoit is installed
on my system also and the ruby script with REGEXPTITLE doesn;t work for me.

Is it that if you have complete auto it on the system then the ruby/watir
script will work??

--
Pallavi.

On Thu, Oct 29, 2009 at 3:49 PM, Željko Filipin 
zeljko.fili...@wa-research.ch wrote:

 2009/10/29 Pallavi Sharma write2pall...@gmail.com

  i wonder why for SMF SMF the ruby script works??

 I did not understand this.

 Ž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] Re: Watir, AutoIT, Window Title and Regular Expression

2009-10-29 Thread Pallavi Sharma
Also, in the scripts i am trying to detect if a Notepad window is opened if
yes then close it.

for me autoit script works but not ruby/watir.

--
Pallavi

On Thu, Oct 29, 2009 at 3:59 PM, Pallavi Sharma write2pall...@gmail.comwrote:

 Another person has replied and stated that the ruby script works with
 REGEXPTITLE option

 I am sorry i dont know the name, so SMF ; well fine but autoit is installed
 on my system also and the ruby script with REGEXPTITLE doesn;t work for me.

 Is it that if you have complete auto it on the system then the ruby/watir
 script will work??

 --
 Pallavi.

 On Thu, Oct 29, 2009 at 3:49 PM, Željko Filipin 
 zeljko.fili...@wa-research.ch wrote:

 2009/10/29 Pallavi Sharma write2pall...@gmail.com

  i wonder why for SMF SMF the ruby script works??

 I did not understand this.

 Ž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] Re: Watir, AutoIT, Window Title and Regular Expression

2009-10-29 Thread SMF SMF
In my machine I have AutoIT - autoit-v3-setup.exe and Watir - ruby186-26.exe



On Thu, Oct 29, 2009 at 3:59 PM, Pallavi Sharma write2pall...@gmail.comwrote:

 Another person has replied and stated that the ruby script works with
 REGEXPTITLE option

 I am sorry i dont know the name, so SMF ; well fine but autoit is installed
 on my system also and the ruby script with REGEXPTITLE doesn;t work for me.

 Is it that if you have complete auto it on the system then the ruby/watir
 script will work??

 --
 Pallavi.

 On Thu, Oct 29, 2009 at 3:49 PM, Željko Filipin 
 zeljko.fili...@wa-research.ch wrote:

 2009/10/29 Pallavi Sharma write2pall...@gmail.com

  i wonder why for SMF SMF the ruby script works??

 I did not understand this.

 Ž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] Re: Watir, AutoIT, Window Title and Regular Expression

2009-10-29 Thread Pallavi Sharma
Yes, same here. but still the ruby script doesn;t work for me.

As Zeljko has stated watir has not implemented complete autoit
functinalities

Now my question here is if anyone can please answer:

If i have auto it complete installed and watir then should the ruby script
work? coz its not working for me.

--
Pallavi.

On Thu, Oct 29, 2009 at 4:03 PM, SMF SMF shaikm.fi...@gmail.com wrote:

 In my machine I have AutoIT - autoit-v3-setup.exe and Watir -
 ruby186-26.exe



 On Thu, Oct 29, 2009 at 3:59 PM, Pallavi Sharma 
 write2pall...@gmail.comwrote:

 Another person has replied and stated that the ruby script works with
 REGEXPTITLE option

 I am sorry i dont know the name, so SMF ; well fine but autoit is
 installed on my system also and the ruby script with REGEXPTITLE doesn;t
 work for me.

 Is it that if you have complete auto it on the system then the ruby/watir
 script will work??

 --
 Pallavi.

 On Thu, Oct 29, 2009 at 3:49 PM, Željko Filipin 
 zeljko.fili...@wa-research.ch wrote:

 2009/10/29 Pallavi Sharma write2pall...@gmail.com

  i wonder why for SMF SMF the ruby script works??

 I did not understand this.

 Ž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] OT: Syntax highlighing for Cucumber features in Notepad++

2009-10-29 Thread aidy lewis
The file is attached

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

NotepadPlus
UserLang name=Features ext=feature
Settings
Global caseIgnored=no /
TreatAsSymbol comment=no commentLine=no /
Prefix words1=no words2=no words3=no words4=no /
/Settings
KeywordLists
Keywords name=Delimiters/Keywords
Keywords name=Folder+/Keywords
Keywords name=Folder-/Keywords
Keywords name=Operators:/Keywords
Keywords name=Comment/Keywords
Keywords name=Words1Feature/Keywords
Keywords name=Words2Given When Then And/Keywords
Keywords name=Words3Scenario/Keywords
Keywords name=Words4/Keywords
/KeywordLists
Styles
WordsStyle name=DEFAULT styleID=11 fgColor=00 bgColor=FF fontName=Verdana fontStyle=0 fontSize=9 /
WordsStyle name=FOLDEROPEN styleID=12 fgColor=00 bgColor=FF fontName= fontStyle=0 /
WordsStyle name=FOLDERCLOSE styleID=13 fgColor=00 bgColor=FF fontName= fontStyle=0 /
WordsStyle name=KEYWORD1 styleID=5 fgColor=FF bgColor=FF fontName=Arial Black fontStyle=0 fontSize=12 /
WordsStyle name=KEYWORD2 styleID=6 fgColor=008000 bgColor=FF fontName=Consolas fontStyle=2 fontSize=12 /
WordsStyle name=KEYWORD3 styleID=7 fgColor=FF bgColor=FF fontName=Arial fontStyle=3 fontSize=12 /
WordsStyle name=KEYWORD4 styleID=8 fgColor=004040 bgColor=FF fontName= fontStyle=0 /
WordsStyle name=COMMENT styleID=1 fgColor=00 bgColor=FF fontName= fontStyle=0 /
WordsStyle name=COMMENT LINE styleID=2 fgColor=00 bgColor=FF fontName= fontStyle=0 fontSize=9 /
WordsStyle name=NUMBER styleID=4 fgColor=00 bgColor=FF fontName= fontStyle=0 /
WordsStyle name=OPERATOR styleID=10 fgColor=00 bgColor=FF fontName= fontStyle=0 /
WordsStyle name=DELIMINER1 styleID=14 fgColor=00 bgColor=FF fontName= fontStyle=0 /
WordsStyle name=DELIMINER2 styleID=15 fgColor=00 bgColor=FF fontName= fontStyle=0 /
WordsStyle name=DELIMINER3 styleID=16 fgColor=00 bgColor=FF fontName= fontStyle=0 /
/Styles
/UserLang
/NotepadPlus


[wtr-general] Re: Watir, AutoIT, Window Title and Regular Expression

2009-10-29 Thread Jarmo Pertman

Why on earth has it done like that?!? Any good reasons why not to
include AutoIT with full functionality? Anyone?

Seems silly to do that silently and i see it just as a one more source
of possible nasty problems and debugging.

Jarmo

On Oct 29, 11:10 am, Željko Filipin zeljko.fili...@wa-research.ch
wrote:
 On Thu, Oct 29, 2009 at 8:04 AM, Pallavi Sharma write2pall...@gmail.com
 wrote: Watir auto it implementation is not working if i use the REGEXPTITLE 
 of

 auto it with it. The same script written directly in AutoIT works although.

 I have played with autoit a few months ago, also trying to use regular
 expressions. Watir installs a smaller version of autoit, that has only a
 subset of full autoit functionality, and egular expression support is not
 there.

 Željko
 --
 watir.com - community manager
 watirpodcast.com - host
--~--~-~--~~~---~--~~
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: How to turn to another newline when input the info in the textarea?

2009-10-29 Thread SMF SMF
It will allow only if @browser.text_field,(ld...) object supports multi
line property.


thanks,
smf

On Thu, Oct 29, 2009 at 2:47 PM, yuping zhong littlezhong...@gmail.comwrote:


 Hi,

 Fill some info in the textarea,I use \n to turn to a newline. But it
 doesn't work.

 Such as:

 @browser.text_field,(ld...).set(Hello,\nHappy new year)

 But it still fill as: Hello,Happy new year

 I want to be:

 Hello,
 Happy new year



 Any idea of that?

 Thanks.

 -Zhong
 


--~--~-~--~~~---~--~~
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: How to turn to another newline when input the info in the textarea?

2009-10-29 Thread Angrez Singh
try this:
@browser.text_field,(ld...).set(Hello,\\nHappy new year)

- Angrez

On Thu, Oct 29, 2009 at 2:47 PM, yuping zhong littlezhong...@gmail.comwrote:


 Hi,

 Fill some info in the textarea,I use \n to turn to a newline. But it
 doesn't work.

 Such as:

 @browser.text_field,(ld...).set(Hello,\nHappy new year)

 But it still fill as: Hello,Happy new year

 I want to be:

 Hello,
 Happy new year



 Any idea of that?

 Thanks.

 -Zhong
 


--~--~-~--~~~---~--~~
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] Data driven framework using SQL database

2009-10-29 Thread Pritam


Hi guys,

I am new to ruby programming, and I need help in developing data
driven framework which uses sql database for retrieving data. I have
seen a lot of examples over internet which showed how to do it using
excel and open source applications.

To start with I need information for the following.

1. How to connect to a sql database using ruby/watir scripts?
2. What sought of architecture am I looking for?

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: Data driven framework using SQL database

2009-10-29 Thread Raveendran P
Hi,

Try this article to connect sql database http://bit.ly/2G9Z3E

http://bit.ly/2G9Z3EThanks


On Thu, Oct 29, 2009 at 5:03 PM, Pritam pmaha...@gmail.com wrote:



 Hi guys,

 I am new to ruby programming, and I need help in developing data
 driven framework which uses sql database for retrieving data. I have
 seen a lot of examples over internet which showed how to do it using
 excel and open source applications.

 To start with I need information for the following.

 1. How to connect to a sql database using ruby/watir scripts?
 2. What sought of architecture am I looking for?

 Thanks in advance.



 



-- 
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: Data driven framework using SQL database

2009-10-29 Thread SMF SMF
Hi Pritam,

Answer to your *question 1.*

require 'dbi'
DB =
Provider=SQLOLEDB.1;Server=servername;Database=DBname;Uid=userid;Pw=password
sql = select LoginID from Login WHERE UserName ='xyz'
DBI.connect(DBI:ADO:#{DB}) do | dbh |
dbh.select_all( sql ) do |row|
puts row[0]  # the first field
#puts row[1]  # the second field
end
end

No idea, about framework or architecture



Thanks

On Thu, Oct 29, 2009 at 5:03 PM, Pritam pmaha...@gmail.com wrote:



 Hi guys,

 I am new to ruby programming, and I need help in developing data
 driven framework which uses sql database for retrieving data. I have
 seen a lot of examples over internet which showed how to do it using
 excel and open source applications.

 To start with I need information for the following.

 1. How to connect to a sql database using ruby/watir scripts?
 2. What sought of architecture am I looking for?

 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: Basic authentication on Linux with FireWatir

2009-10-29 Thread Chris


FWIW: 
http://chrismcmahonsblog.blogspot.com/2006/05/internet-explorer-basic-authorization.html

On Oct 28, 1:20 am, Angrez Singh ang...@gmail.com wrote:
 I have added the basic authentication mechanism to Firewatir. Its not yet
 released. Me  Bret need to finalize on the syntax, method name etc so that
 its easier to use both with Watir/Firewatir.

 - Angrez

 On Wed, Oct 28, 2009 at 10:28 AM, Raveendran P jazzezr...@gmail.com wrote:
  Hi Aedorn,

             I got some idea's from Selenium.I implemented it in my Watir
  scripts. Have you tried this way?  -- http://bit.ly/21zDrH

              Awaiting your reply

  Thanks

  On Wed, Oct 28, 2009 at 6:03 AM, Ethan notet...@gmail.com wrote:

  Yeah, you should be able to get a handle to the window where you enter
  username/password, get the text fields on that window, set them, click the
  'ok' button. That'd all be in javascript over the jssh socket.

  On Tue, Oct 27, 2009 at 20:28, aidy lewis aidy.le...@googlemail.comwrote:

  The Firefox browser is completly scriptable. I would suggest looking
  at the Mozilla js classes.

  2009/10/27 Chris christopher.mcma...@gmail.com:

   I looked into this a long time ago, and there is no way to persist a
   Basic Auth session in a browser.  You have to have credentials for
   every page request and every frame within every page.   I was hacking
   around deep in the guts of Watir trying to make this work and failed.

   Nor do I know of any other tool that makes this possible.  There might
   be something fancy you could do in multiple libraries used by Watir,
   buiret I did not have that kind of mandate.

   I suggest a well-designed set of manual tours.

   -Chris

   On Oct 27, 1:53 pm, Aedorn Varanis aed...@gmail.com wrote:
   This doesn't really solve the problem.

   On Tue, Oct 27, 2009 at 1:09 PM, aidy lewis 
  aidy.le...@googlemail.comwrote:

Can you not set your trusted uri's in about:config

network.automatic-ntlm-auth.trusted-uris ?

Aidy

2009/10/27 Aedorn Varanis aed...@gmail.com:
 I took a look around but it doesn't like there's any answer to
  this. I've
 recently been tasked to automate testing of a product, and the
  only thing
I
 can't seem to solve is basic authentication, which is rather funny
  to me,
 but not so much to those who are waiting on this being done.

 So how can one go about doing basic authentication with
  FireWatir/Firefox
on
 Linux currently?

  --
  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: Basic authentication on Linux with FireWatir

2009-10-29 Thread Željko Filipin
On Thu, Oct 29, 2009 at 2:58 PM, Chris christopher.mcma...@gmail.com
wrote:
 FWIW:
http://chrismcmahonsblog.blogspot.com/2006/05/internet-explorer-basic-authorization.html

Chris,

Would you add this to Basic Authentication wiki page?

http://wiki.openqa.org/display/WTR/Basic+Authentication

Željko
--
watir.com - community manager
watirpodcast.com - host

--~--~-~--~~~---~--~~
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] Safriwatir issue with clicking links

2009-10-29 Thread QAguy

Hi there. Hoping someone can help me. I am trying to click on a link
by selecting an id. Here is the code html code on the page: a
id=signout_link class=ga_trackable href=/user/logoutSign Out/
a

I am using the following in my test code: @browser.link(:id,
'signout_link').click

This highlights the link in the browser window yellow but doesn't
actual cause the click action to occur, I'm using safariwatir. Anyone
know why the click action is not actually following the link? I also
try by selecting via the text of the link but that gives me a not
supporter by Safariwatir error.

Any help would be greatly appericated as this issue is really blocking
me at the moment.

Thank you 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: Watir, AutoIT, Window Title and Regular Expression

2009-10-29 Thread Bret Pettichord

My guess is that AutoIt has been updated since it was originally 
packaged with Watir. AutoIt itself is not open-source software, so we 
have to look at licensing issues before updating what we use.

Bret

Jarmo Pertman wrote:
 Why on earth has it done like that?!? Any good reasons why not to
 include AutoIT with full functionality? Anyone?

 Seems silly to do that silently and i see it just as a one more source
 of possible nasty problems and debugging.

 Jarmo

 On Oct 29, 11:10 am, Željko Filipin zeljko.fili...@wa-research.ch
 wrote:
   
 On Thu, Oct 29, 2009 at 8:04 AM, Pallavi Sharma write2pall...@gmail.com
 wrote: Watir auto it implementation is not working if i use the REGEXPTITLE 
 of

 auto it with it. The same script written directly in AutoIT works although.

 I have played with autoit a few months ago, also trying to use regular
 expressions. Watir installs a smaller version of autoit, that has only a
 subset of full autoit functionality, and egular expression support is not
 there.

 Željko
 --
 watir.com - community manager
 watirpodcast.com - host
 
 
   


--~--~-~--~~~---~--~~
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 1.6.5.rc2 - release candidate available for testing

2009-10-29 Thread Shlomit Gazit

Any idea?

On Oct 27, 3:23 pm, Shlomit Gazit shlomitpatr...@gmail.com wrote:
 require 'rubygems'
 require 'firewatir/container' -- the problematic line
 require 'watir/browser'

 On Oct 27, 2:44 pm, Bret Pettichord b...@pettichord.com wrote:

  Can you share the code that is failing? Specifically the code on and
  around line 7 of
  /Users/shlomit/workspaces/trunk/ff_c2p_watir/ff_c2p_test_issues_2_menus_dev.rb

 ShlomitGazit wrote:
   After upgrading I am getting the error:

   /Users/shlomit/.gem/ruby/1.8/gems/firewatir-1.6.5.rc2/lib/firewatir/
   container.rb:46: uninitialized constant
   FireWatir::Container::JsshSocket (NameError)
      from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:36:in
   `gem_original_require'
      from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:36:in
   `require'
      from /Users/shlomit/workspaces/trunk/ff_c2p_watir/
   ff_c2p_test_issues_2_menus_dev.rb:7

   When starting running a test.

   On Oct 23, 2:36 am, Željko Filipin zeljko.fili...@wa-research.ch
   wrote:

   On Thu, Oct 22, 2009 at 11:14 PM, Charley Baker charley.ba...@gmail.com
   wrote:

    We have a new version of Watir for testing, 1.6.5.rc2.

   I just did upgrade from 1.6.2 and everything works fine so far.

   Željko
   --http://watirpodcast.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: Watir 1.6.5.rc2 - release candidate available for testing

2009-10-29 Thread Bret Pettichord

I don't know why you are doing require 'firewatir/container'.

Bret

Shlomit Gazit wrote:
 Any idea?

 On Oct 27, 3:23 pm, Shlomit Gazit shlomitpatr...@gmail.com wrote:
   
 require 'rubygems'
 require 'firewatir/container' -- the problematic line
 require 'watir/browser'

 On Oct 27, 2:44 pm, Bret Pettichord b...@pettichord.com wrote:

 
 Can you share the code that is failing? Specifically the code on and
 around line 7 of
 /Users/shlomit/workspaces/trunk/ff_c2p_watir/ff_c2p_test_issues_2_menus_dev.rb
   
 ShlomitGazit wrote:
   
 After upgrading I am getting the error:
 
 /Users/shlomit/.gem/ruby/1.8/gems/firewatir-1.6.5.rc2/lib/firewatir/
 container.rb:46: uninitialized constant
 FireWatir::Container::JsshSocket (NameError)
from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:36:in
 `gem_original_require'
from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:36:in
 `require'
from /Users/shlomit/workspaces/trunk/ff_c2p_watir/
 ff_c2p_test_issues_2_menus_dev.rb:7
 
 When starting running a test.
 
 On Oct 23, 2:36 am, Željko Filipin zeljko.fili...@wa-research.ch
 wrote:
 
 On Thu, Oct 22, 2009 at 11:14 PM, Charley Baker charley.ba...@gmail.com
 wrote:
   
  We have a new version of Watir for testing, 1.6.5.rc2.
 
 I just did upgrade from 1.6.2 and everything works fine so far.
   
 Željko
 --http://watirpodcast.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] Important - Watir 1.6.5.rc2 - release candidate available for testing - redux

2009-10-29 Thread Charley Baker
Hi all,

  I've gotten feedback from 2 people so far on the rc2 candidate for
release. If I get no further information, this is looking like the next
candidate for a Watir release of 1.6.5. The release is here with
instructions:
http://wiki.openqa.org/display/WTR/Development+Builds

I'd love to hear from people running firewatir in mac and linux.

Thanks for the help, if you do run across any issues send them to the list
or feel free to popup on irc, instructions on how to use that on our site.
Right now, without any changes, I'm looking at a final release beginning of
next week.

-Charley

--~--~-~--~~~---~--~~
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: Basic authentication on Linux with FireWatir

2009-10-29 Thread Aedorn Varanis
Internet Explorer solutions don't tend to work well with Firefox in Linux.

However, Angrez's fork had the solution so I'm using that now. Thanks
Angrez, works perfectly!

On Thu, Oct 29, 2009 at 7:58 AM, Chris christopher.mcma...@gmail.comwrote:



 FWIW:
 http://chrismcmahonsblog.blogspot.com/2006/05/internet-explorer-basic-authorization.html

 On Oct 28, 1:20 am, Angrez Singh ang...@gmail.com wrote:
  I have added the basic authentication mechanism to Firewatir. Its not yet
  released. Me  Bret need to finalize on the syntax, method name etc so
 that
  its easier to use both with Watir/Firewatir.
 
  - Angrez
 
  On Wed, Oct 28, 2009 at 10:28 AM, Raveendran P jazzezr...@gmail.com
 wrote:
   Hi Aedorn,
 
  I got some idea's from Selenium.I implemented it in my Watir
   scripts. Have you tried this way?  -- http://bit.ly/21zDrH
 
   Awaiting your reply
 
   Thanks
 
   On Wed, Oct 28, 2009 at 6:03 AM, Ethan notet...@gmail.com wrote:
 
   Yeah, you should be able to get a handle to the window where you enter
   username/password, get the text fields on that window, set them, click
 the
   'ok' button. That'd all be in javascript over the jssh socket.
 
   On Tue, Oct 27, 2009 at 20:28, aidy lewis aidy.le...@googlemail.com
 wrote:
 
   The Firefox browser is completly scriptable. I would suggest looking
   at the Mozilla js classes.
 
   2009/10/27 Chris christopher.mcma...@gmail.com:
 
I looked into this a long time ago, and there is no way to persist
 a
Basic Auth session in a browser.  You have to have credentials for
every page request and every frame within every page.   I was
 hacking
around deep in the guts of Watir trying to make this work and
 failed.
 
Nor do I know of any other tool that makes this possible.  There
 might
be something fancy you could do in multiple libraries used by
 Watir,
buiret I did not have that kind of mandate.
 
I suggest a well-designed set of manual tours.
 
-Chris
 
On Oct 27, 1:53 pm, Aedorn Varanis aed...@gmail.com wrote:
This doesn't really solve the problem.
 
On Tue, Oct 27, 2009 at 1:09 PM, aidy lewis 
   aidy.le...@googlemail.comwrote:
 
 Can you not set your trusted uri's in about:config
 
 network.automatic-ntlm-auth.trusted-uris ?
 
 Aidy
 
 2009/10/27 Aedorn Varanis aed...@gmail.com:
  I took a look around but it doesn't like there's any answer to
   this. I've
  recently been tasked to automate testing of a product, and the
   only thing
 I
  can't seem to solve is basic authentication, which is rather
 funny
   to me,
  but not so much to those who are waiting on this being done.
 
  So how can one go about doing basic authentication with
   FireWatir/Firefox
 on
  Linux currently?
 
   --
   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: Basic authentication on Linux with FireWatir

2009-10-29 Thread Angrez Singh
Thats great. I used it only on windows so it works on Linux as well. Happy
to help
- Angrez

On Fri, Oct 30, 2009 at 12:38 AM, Aedorn Varanis aed...@gmail.com wrote:

 Internet Explorer solutions don't tend to work well with Firefox in Linux.

 However, Angrez's fork had the solution so I'm using that now. Thanks
 Angrez, works perfectly!


 On Thu, Oct 29, 2009 at 7:58 AM, Chris christopher.mcma...@gmail.comwrote:



 FWIW:
 http://chrismcmahonsblog.blogspot.com/2006/05/internet-explorer-basic-authorization.html

 On Oct 28, 1:20 am, Angrez Singh ang...@gmail.com wrote:
  I have added the basic authentication mechanism to Firewatir. Its not
 yet
  released. Me  Bret need to finalize on the syntax, method name etc so
 that
  its easier to use both with Watir/Firewatir.
 
  - Angrez
 
  On Wed, Oct 28, 2009 at 10:28 AM, Raveendran P jazzezr...@gmail.com
 wrote:
   Hi Aedorn,
 
  I got some idea's from Selenium.I implemented it in my
 Watir
   scripts. Have you tried this way?  -- http://bit.ly/21zDrH
 
   Awaiting your reply
 
   Thanks
 
   On Wed, Oct 28, 2009 at 6:03 AM, Ethan notet...@gmail.com wrote:
 
   Yeah, you should be able to get a handle to the window where you
 enter
   username/password, get the text fields on that window, set them,
 click the
   'ok' button. That'd all be in javascript over the jssh socket.
 
   On Tue, Oct 27, 2009 at 20:28, aidy lewis aidy.le...@googlemail.com
 wrote:
 
   The Firefox browser is completly scriptable. I would suggest looking
   at the Mozilla js classes.
 
   2009/10/27 Chris christopher.mcma...@gmail.com:
 
I looked into this a long time ago, and there is no way to persist
 a
Basic Auth session in a browser.  You have to have credentials for
every page request and every frame within every page.   I was
 hacking
around deep in the guts of Watir trying to make this work and
 failed.
 
Nor do I know of any other tool that makes this possible.  There
 might
be something fancy you could do in multiple libraries used by
 Watir,
buiret I did not have that kind of mandate.
 
I suggest a well-designed set of manual tours.
 
-Chris
 
On Oct 27, 1:53 pm, Aedorn Varanis aed...@gmail.com wrote:
This doesn't really solve the problem.
 
On Tue, Oct 27, 2009 at 1:09 PM, aidy lewis 
   aidy.le...@googlemail.comwrote:
 
 Can you not set your trusted uri's in about:config
 
 network.automatic-ntlm-auth.trusted-uris ?
 
 Aidy
 
 2009/10/27 Aedorn Varanis aed...@gmail.com:
  I took a look around but it doesn't like there's any answer
 to
   this. I've
  recently been tasked to automate testing of a product, and
 the
   only thing
 I
  can't seem to solve is basic authentication, which is rather
 funny
   to me,
  but not so much to those who are waiting on this being done.
 
  So how can one go about doing basic authentication with
   FireWatir/Firefox
 on
  Linux currently?
 
   --
   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: ie.modal_dialog(:title, 'Tile') problem

2009-10-29 Thread Bret Pettichord

Could you try

@ie.modal_dialog(:title, 'Batch Update')


david wrote:
 Have a section of code that is waiting for a modal dialog to appear
 which is visible with the title ‘'Batch Update -- Web Page Dialog’

 modal = @ie.modal_dialog(:title, 'Batch Update -- Web Page Dialog')
 modal.wait
 modal.button(:value,'Yes').click_no_wait

 However the dialog is not being found by title.

 Is there a problem with finding modal_dialog by title? Is there
 another way to do this? I am using Ruby 1.8.6

 I tried just modal = @ie.modal_dialog
 which should work according to the API documentation but I see there
 is a problem with this approach, even though there can be only one
 modal dialog at a time on screen and this seems like an ideal way to
 attach to a modal dialog. I get the following error:

 IE#modal_dialog not supported with the current version of Ruby
 (1.8.6).
 See http://jira.openqa.org/browse/WTR-2 for details.
 undefined method `connect_unknown' for WIN32OLE:Class

 David
 
   


-- 
Bret Pettichord
Lead Developer, Watir, www.watir.com
Blog, www.io.com/~wazmo/blog
Twitter, www.twitter.com/bpettichord


--~--~-~--~~~---~--~~
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: Answering incomplete requests

2009-10-29 Thread Željko Filipin
I have been thinking about this for a long time, and it just came to me that
it is related to this thread. I think the time has come to take Watir
support to the next level.

Have you heard about site called Stack Overflow? I use it all the time.
Created by Jeff Atwood and Joel Spolsky. If you do not know who they are
just google them.

How it works? You log in with openid, ask question, tag it with watir. There
is a feed for the tag. We subscribe to the feed and answer questions.

It is the future of support. It is a very useful merge of support forum,
digg and wiki with features like tagging questions, closing duplicate
questions (with link to original question), voting on good questions and
answers (so good and interesting questions and answers float to the top).
Since it is also a wiki, questions and answers can be edited (including
adding and removing tags). When you type a title for the question and start
typing the body, it automatically searches the site and displays similar
questions under the title. Just what we need. No more please search before
you ask. The site searches for you.

There are some watir questions already there, but not much. I have put some
to try things out:

http://stackoverflow.com/questions/tagged/watir
http://stackoverflow.com/questions/tagged/firewatir

Watin folks use it much more:

http://stackoverflow.com/questions/tagged/watin

You get points for each up vote you get. There are also badges. Makes
answering questions more like a game.

There is added benefit. If we get a question that is for example more ruby
related, we can tag it with ruby (if it is not already tagged) and then all
users that follow that tag will see it and probably answer.

We could close this group, or leave it only for discussion, and move all
support to Stack Overflow. We could make this group moderated, and approve
only discussion posts, and reject all support with a note to post ti to
Stack Overflow. If we agree on that, I volunteer to do that for the next
month, and probably longer if needed.

More information:

http://stackoverflow.com/
http://blog.stackoverflow.com/
http://blog.stackoverflow.com/category/podcasts/
http://en.wikipedia.org/wiki/Stack_Overflow

If anybody wants to know more about it, just ask. If this is not appropriate
place to talk about it, sent your question to me directly.

What do you think? Has the time to move come? Or do you think we should stay
here for now?

Ž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] Navigating to parent

2009-10-29 Thread Jeff Fry
Hey all,
Remind me, is there a way in watir to navigate to the parent of an element?
I'm thinking of something like:

#find text_field where value matches /foo/, go up to the tr that
contains it, and then within that tr click on the first li
browser.text_field(:value = /foo/).row(:parent).li(:index = 1).click

I made up the .row(:parent) syntax in the above example. I'm just wondering
if there's real syntax to do the same thing...or if this is more of a
feature request?

Cheers,

-- 
Jeff Fry

http://testingjeff.wordpress.com
http://associationforsoftwaretesting.org

--~--~-~--~~~---~--~~
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: Navigating to parent

2009-10-29 Thread Wesley Chen
Please try:
element(:xxx, 'xxx').parent.element(:yyy, 'yyy')
Thanks.
Wesley Chen.
For life, the easier, the better.


On Fri, Oct 30, 2009 at 9:09 AM, Jeff Fry jeff@gmail.com wrote:

 Hey all,
 Remind me, is there a way in watir to navigate to the parent of an element?
 I'm thinking of something like:

 #find text_field where value matches /foo/, go up to the tr that
 contains it, and then within that tr click on the first li
 browser.text_field(:value = /foo/).row(:parent).li(:index = 1).click

 I made up the .row(:parent) syntax in the above example. I'm just wondering
 if there's real syntax to do the same thing...or if this is more of a
 feature request?

 Cheers,

 --
 Jeff Fry

 http://testingjeff.wordpress.com
 http://associationforsoftwaretesting.org

 


--~--~-~--~~~---~--~~
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: Need help about startClicker

2009-10-29 Thread Raveendran P
Hi Bin,

 Your guess is correct. But I am finding(trying to find) the alternative
way  for this.

thanks

On Thu, Oct 29, 2009 at 12:58 PM, Bindhu udayarekha2...@gmail.com wrote:


 Hi Ravenedraan,

 I guess why it is returning true.
 The title of the popup is Microsoft Internet Explorer.So I said
  window_name_opened('Microsoft Internet Explorer').

 IE window which is opend to execute my application has title
 Microsoft Internet Explorer. That is reason why it is returning
 true even though the popup does not appear.

 If my guess is correct, is there any other alternat way to handle the
 popup... like based on the warning message printed on the popup

 Thanks

 On Oct 29, 12:15 pm, Raveendran P jazzezr...@gmail.com wrote:
  Hi Bindhu,
 
   Its Strange ! There is not possible to return true but it occurs now.
 
  Let us wait for Zeljko's update.
 
  Thanks
 
 
 
 
 
  On Thu, Oct 29, 2009 at 12:39 PM, Bindhu udayarekha2...@gmail.com
 wrote:
 
   Hi Raveendran,
 
   It is still returning true even though popup does not appear.
   The below is the code:
   if ouput == true
 puts pop up
 startClicker( OK )
 else
   puts no popup
   $ie = Watir::IE.find(:url,/search.do/)
   sleep(5)
   $ie.frame(:name, mainFrame).button(:id,submitBtn).click
   $ie.frame(:name, mainFrame).button(:id,addProducts).click
 
   Thanks
 
   On Oct 29, 11:55 am, Raveendran P jazzezr...@gmail.com wrote:
Hi Bindhu,
 
Try  with this change
 
 if ouput == true
 
  else
 
end
 
1. Replace = to ==.
2.Replace 'true' to true -- it returns true -- it is not a string
 
Awaiting your reply
 
On Thu, Oct 29, 2009 at 12:20 PM, Bindhu udayarekha2...@gmail.com
   wrote:
 
 Hi Raveendran,
 
 Thanks a lot for ur reply.
 If popup does not appear also it is returning 'true'.
 
  if ouput ='true'
   puts pop up
   startClicker( OK )
  else
 puts no popup
 sleep(5)
 $ie = Watir::IE.find(:url,/search.do/)
 $ie = Watir::IE.find(:url,/secure/)
 $ie.frame(:name, mainFrame).button(:id,submitBtn).click
 end
 It is handling popup if appears but not executing the remaning
 code.
 And if popup does not appear it is still waiting for it.
 Am I using to your code correctly. Please let me know..
 
 Thanks
 
 On Oct 29, 10:50 am, Raveendran P jazzezr...@gmail.com wrote:
  Hi Bindhu,
 
  Sorry for interrupt but may be this will help to solve ur
 problem.
 
  Try with this article -- http:// goog_1256773908603
 bit.ly/3TbxYr
  http://bit.ly/3TbxYr and
  Replace the window name notepad' to your pop-up window name.
 
  Thanks
 
  On Thu, Oct 29, 2009 at 11:06 AM, Bindhu 
 udayarekha2...@gmail.com
 wrote:
 
   Hi Zeljko,
 
   I am really sorry that I have not clearly described what
 exactly I
   want to do in my previous query.
   There is popup with warning message will appear, if we try to
   create
   the customer with the existing customer details. I wanted to
 click
   OK
   to continue with remaning functionality.
   I am using startClicker(). It is handling Popup when ever it
   appears
   and executing the remaining code. But the problem here is if
 the
   popup
   does not appear script is waiting for it appear and NOT
 proceeding
   with remaining script.
 
   Can it handle this situation by getting the property of the
 Popup?
   If
   so how can get the property of it.
 
   Thanks In Advance
 
   On Oct 21, 1:10 pm, Željko Filipin 
 zeljko.fili...@wa-research.ch
   wrote:
On Wed, Oct 21, 2009 at 6:37 AM, Bindhu 
   udayarekha2...@gmail.com
   wrote:
 I need to skip the pop up when ever it appear.
 
And the problem is?
 
Have you read this?
 
   http://wiki.openqa.org/display/WTR/Pop+Ups
 
Željko
--http://watirpodcast.com/
 
  --
  Regards,
  P.Raveendranhttp://raveendran.wordpress.com-Hidequoted text -
 
  - Show quoted text -
 
--
Regards,
P.Raveendranhttp://raveendran.wordpress.com-Hide quoted text -
 
- Show quoted text -
 
  --
  Regards,
  P.Raveendranhttp://raveendran.wordpress.com- Hide quoted text -
 
  - Show quoted text -
 



-- 
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] good link on watir.

2009-10-29 Thread Pallavi Sharma
Hi

Anyone seen this link: http://justaddwatir.com/watir/

quite useful and interesting.

--
Pallavi

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