[wtr-general] Re: bring_to_front function not working...
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...
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 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 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...
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 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()
Worked like a charm, Charley. Thank you! On Jun 2, 11:52 am, Charley Baker wrote: > You need to register the autoit dll. Follow this > thread:http://groups.google.com/group/watir-general/browse_thread/thread/f58... > > Charley Baker > blog:http://blog.charleybaker.org/ > Lead Developer, Watir,http://wtr.rubyforge.org > QA Architect, Gap Inc Direct > > On Tue, Jun 2, 2009 at 10:46 AM, Monkeybuns wrote: > > > I'm trying to add a bring_to_front() to Bret's 'Pragmatic Bookshelf' > > example from the Watir training class. > > > I''m running watir-1.6.2 on XP using IE6. > > > All goes well until I try to stick in a bring_to_front() command as > > follows (these are the opening lines of the script): > > > require 'rubygems' > > require 'watir' > > > #Link to Store > > browser = Watir::Browser.start('http://localhost:3000/store') > > browser.bring_to_front() > > > The addition of browser.bring_to_front() causes the following error: > > > >ruby PragmaticBookshelfExercise.rb > > C:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie.rb:113:in > > `initialize': unknown OLE server: > > `AutoItX3.Control' (WIN32OLERuntimeError) > > HRESULT error code:0x800401f3 > > Invalid class string > > from C:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie.rb: > > 113:in `new' > > from C:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie.rb: > > 113:in `autoit' > > from > > C:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie-class.rb: > > 425:in `autoit' > > from > > C:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie-class.rb: > > 413:in `bring_to_front' > > from PragmaticBookshelfExercise.rb:6 > > >Exit code: 1 > > > Looking for answers or ideas. Thanks! --~--~-~--~~~---~--~~ 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()
You need to register the autoit dll. Follow this thread: http://groups.google.com/group/watir-general/browse_thread/thread/f58e3598b03a9111 Charley Baker blog: http://blog.charleybaker.org/ Lead Developer, Watir, http://wtr.rubyforge.org QA Architect, Gap Inc Direct On Tue, Jun 2, 2009 at 10:46 AM, Monkeybuns wrote: > > I'm trying to add a bring_to_front() to Bret's 'Pragmatic Bookshelf' > example from the Watir training class. > > I''m running watir-1.6.2 on XP using IE6. > > All goes well until I try to stick in a bring_to_front() command as > follows (these are the opening lines of the script): > > require 'rubygems' > require 'watir' > > #Link to Store > browser = Watir::Browser.start('http://localhost:3000/store') > browser.bring_to_front() > > The addition of browser.bring_to_front() causes the following error: > > >ruby PragmaticBookshelfExercise.rb > C:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie.rb:113:in > `initialize': unknown OLE server: > `AutoItX3.Control' (WIN32OLERuntimeError) >HRESULT error code:0x800401f3 > Invalid class string >from C:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie.rb: > 113:in `new' >from C:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie.rb: > 113:in `autoit' >from > C:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie-class.rb: > 425:in `autoit' >from > C:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie-class.rb: > 413:in `bring_to_front' >from PragmaticBookshelfExercise.rb:6 > >Exit code: 1 > > Looking for answers or ideas. Thanks! > > > --~--~-~--~~~---~--~~ 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
Hi, I am using watir 1.6.2(installed yesterday-17/Feb/2009). ie.bring_to_front() is not working. application is not coming front but the script runs fine. wats the problem. Thanks, Venkat On Feb 18, 2:08 pm, venky wrote: > Hi, > > I am using watir 1.6.2(installed yesterday-17/Feb/2009). > ie.bring_to_front() is not working. application is not coming front > but the script runs find. wats the problem. > > Thanks, > Venkat --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---