[wtr-general] Re: File Download - Security Warning popup

2010-01-26 Thread orde
I have previously used solution 2 on 
http://wiki.openqa.org/display/WTR/File+Downloads
for downloading files.

You'd have to tweak it (e.g. for starters, change File Download to
File Download - Security Warning; change Save to Run), but it
should get you going in the right direction.

Hope it helps.

orde



On Jan 25, 4:30 pm, capri capricorn...@gmail.com wrote:
 I replaced click with click_no_wait in my code..doesn't seem to work..
 just stalls at this point and doesnt proceed further to click the
 'Run' button of the file download - security warning window.  any
 thoughts on this?

 many thanks..

 On Jan 23, 6:19 am, Arihan arihan.si...@googlemail.com wrote:



  Pls use clicknowait method .. It would work ..

  Sent from my iPhone

  On 22 Jan 2010, at 22:53, capri capricorn...@gmail.com wrote:

   Hi,

   I tried the below code to identify file download -security warning
   message using autoit in my watir script.  However it does not seem to
   work.  I am trying to click the 'Run' button of this window. On
   running the script, it gets struck and doesn't show any errors. Any
   thoughts,inputs would be highly appreciated.

   many thanks.

   Code:
   -
   require 'watir'
   require 'rubygems'
   require 'win32ole' # to invoke Autoit controls

   ie=Watir::IE.new
   autoit=WIN32OLE.new('AutoItX3.Control')

   ie.goto http://www.cooliris.com;

   ie.link(:html,/return InstallHelper.clickedDownload()/).click

   r=autoit.WinExists(File Download - Security Warning)
   puts r

   res=autoit.WinWait(File Download - Security Warning,'',3)
   puts  res
   res=autoit.WinActivate(File Download - Security Warning)
   puts res
   res=ie.autoit.ControlFocus(File Download - Security Warning,,
   Run)
   res=ie.autoit.ControlClick(File Download - Security
   Warning,,Run)
   puts res
   puts \n

   --  
   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 
   athttp://groups.google.com/group/watir-general

-- 
You received this message because you are subscribed to the Google Groups 
Watir General group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general


Re: [wtr-general] Re: File Download - Security Warning popup

2010-01-26 Thread Arihan
You can use the command for TAB  ENTER to focus in run or save button  
of  u r warning window and get it clicked


Sent from my iPhone

On 26 Jan 2010, at 20:57, orde ohil...@gmail.com wrote:


I have previously used solution 2 on 
http://wiki.openqa.org/display/WTR/File+Downloads
for downloading files.

You'd have to tweak it (e.g. for starters, change File Download to
File Download - Security Warning; change Save to Run), but it
should get you going in the right direction.

Hope it helps.

orde



On Jan 25, 4:30 pm, capri capricorn...@gmail.com wrote:
I replaced click with click_no_wait in my code..doesn't seem to  
work..

just stalls at this point and doesnt proceed further to click the
'Run' button of the file download - security warning window.  any
thoughts on this?

many thanks..

On Jan 23, 6:19 am, Arihan arihan.si...@googlemail.com wrote:




Pls use clicknowait method .. It would work ..



Sent from my iPhone



On 22 Jan 2010, at 22:53, capri capricorn...@gmail.com wrote:



Hi,


I tried the below code to identify file download -security  
warning
message using autoit in my watir script.  However it does not  
seem to

work.  I am trying to click the 'Run' button of this window. On
running the script, it gets struck and doesn't show any errors. Any
thoughts,inputs would be highly appreciated.



many thanks.



Code:
-
require 'watir'
require 'rubygems'
require 'win32ole' # to invoke Autoit controls



ie=Watir::IE.new
autoit=WIN32OLE.new('AutoItX3.Control')



ie.goto http://www.cooliris.com;



ie.link(:html,/return InstallHelper.clickedDownload()/).click



r=autoit.WinExists(File Download - Security Warning)
puts r



res=autoit.WinWait(File Download - Security Warning,'',3)
puts  res
res=autoit.WinActivate(File Download - Security Warning)
puts res
res=ie.autoit.ControlFocus(File Download - Security Warning,,
Run)
res=ie.autoit.ControlClick(File Download - Security
Warning,,Run)
puts res
puts \n


--  
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 athttp://groups.google.com/ 
group/watir-general


--
You received this message because you are subscribed to the Google  
Groups Watir General group.

To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general


--
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: File Download - Security Warning popup

2010-01-25 Thread capri
I replaced click with click_no_wait in my code..doesn't seem to work..
just stalls at this point and doesnt proceed further to click the
'Run' button of the file download - security warning window.  any
thoughts on this?

many thanks..

On Jan 23, 6:19 am, Arihan arihan.si...@googlemail.com wrote:
 Pls use clicknowait method .. It would work ..

 Sent from my iPhone

 On 22 Jan 2010, at 22:53, capri capricorn...@gmail.com wrote:



  Hi,

  I tried the below code to identify file download -security warning
  message using autoit in my watir script.  However it does not seem to
  work.  I am trying to click the 'Run' button of this window. On
  running the script, it gets struck and doesn't show any errors. Any
  thoughts,inputs would be highly appreciated.

  many thanks.

  Code:
  -
  require 'watir'
  require 'rubygems'
  require 'win32ole' # to invoke Autoit controls

  ie=Watir::IE.new
  autoit=WIN32OLE.new('AutoItX3.Control')

  ie.goto http://www.cooliris.com;

  ie.link(:html,/return InstallHelper.clickedDownload()/).click

  r=autoit.WinExists(File Download - Security Warning)
  puts r

  res=autoit.WinWait(File Download - Security Warning,'',3)
  puts  res
  res=autoit.WinActivate(File Download - Security Warning)
  puts res
  res=ie.autoit.ControlFocus(File Download - Security Warning,,
  Run)
  res=ie.autoit.ControlClick(File Download - Security
  Warning,,Run)
  puts res
  puts \n

  --  
  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 
  athttp://groups.google.com/group/watir-general

-- 
You received this message because you are subscribed to the Google Groups 
Watir General group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general


[wtr-general] Re: File Download - Security Warning popup

2010-01-22 Thread orde
Try click_no_wait instead of click on this line:

ie.link(:html,/return InstallHelper.clickedDownload()/).click

Also, check out: http://wiki.openqa.org/display/WTR/Basic+Authentication

Hope it helps.

On Jan 22, 2:53 pm, capri capricorn...@gmail.com wrote:
 Hi,

 I tried the below code to identify file download -security warning
 message using autoit in my watir script.  However it does not seem to
 work.  I am trying to click the 'Run' button of this window. On
 running the script, it gets struck and doesn't show any errors. Any
 thoughts,inputs would be highly appreciated.

 many thanks.

 Code:
 -
 require 'watir'
 require 'rubygems'
 require 'win32ole' # to invoke Autoit controls

 ie=Watir::IE.new
 autoit=WIN32OLE.new('AutoItX3.Control')

 ie.goto http://www.cooliris.com;

 ie.link(:html,/return InstallHelper.clickedDownload()/).click

 r=autoit.WinExists(File Download - Security Warning)
 puts r

 res=autoit.WinWait(File Download - Security Warning,'',3)
 puts  res
 res=autoit.WinActivate(File Download - Security Warning)
 puts res
 res=ie.autoit.ControlFocus(File Download - Security Warning,,
 Run)
 res=ie.autoit.ControlClick(File Download - Security
 Warning,,Run)
 puts res
 puts \n

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