[wtr-general] Re: bring_to_front function not working...

2009-10-06 Thread John Kolokotronis

Maybe try using AutoIT's WinSetOnTop function directly? Like this:

require 'win32ole'

AutoIt = WIN32OLE.new(AutoItX3.Control)
AutoIt.WinSetOnTop([REGEXPTITLE:#...@ie.get_title}], , 1)

Regards,

John
--~--~-~--~~~---~--~~
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: bring_to_front function not working...

2009-10-05 Thread sHiVa

Hi,

Did you register the AutoItx3.dll?

Run the following command from command prompt.
regsvr C:\ruby\lib\ruby\gems\1.8\gems\watir-1.6.2\lib\watir
\AutoItX3.dll
Thanks  Regards
Siva Phaneendra K


On Oct 5, 5:34 pm, Prince3105 prince3...@gmail.com wrote:
 Hi Al,

 I am using below code in my scripts. My script  has so many sendkey
 operations. So i am using bring_to_front function to activate the
 application. But its not working and it doesn't throw any error. So
 please give me any other options are available in Watir like  WSH's
 AppActivate .

     @ie = Watir::IE.new
     @ie.goto $url
     @ie.maximize
     @ie.bring_to_front

     @ie.text_field(:id,txtUserName).set user_id
     @ie.text_field(:id,txtPassword).set password
     @ie.button(:id,btnSubmit).click

 Thanks,

 Prince3105
--~--~-~--~~~---~--~~
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: bring_to_front function not working...

2009-10-05 Thread Prince3105

Thsnks Siva,

For your instant reply, i registered and other AutoIT methods are
working without any error. My actual issue is if my application
is in background  and if i  apply bring_to_front() function it should
bring the application to foreground. isn't it? but it wont bring to
foreground
and send key method will not work as per my wish.


it doesn't throw any error. but it dont work.



Thanks,

Prince3105.




On Oct 5, 6:51 pm, sHiVa krapa.ph...@gmail.com wrote:
 Hi,

 Did you register the AutoItx3.dll?

 Run the following command from command prompt.
 regsvr C:\ruby\lib\ruby\gems\1.8\gems\watir-1.6.2\lib\watir
 \AutoItX3.dll
 Thanks  Regards
 Siva Phaneendra K

 On Oct 5, 5:34 pm, Prince3105 prince3...@gmail.com wrote:

  Hi Al,

  I am using below code in my scripts. My script  has so many sendkey
  operations. So i am using bring_to_front function to activate the
  application. But its not working and it doesn't throw any error. So
  please give me any other options are available in Watir like  WSH's
  AppActivate .

      @ie = Watir::IE.new
      @ie.goto $url
      @ie.maximize
      @ie.bring_to_front

      @ie.text_field(:id,txtUserName).set user_id
      @ie.text_field(:id,txtPassword).set password
      @ie.button(:id,btnSubmit).click

  Thanks,

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