RE: [Wtr-general] Click OK button on Popup Dialog?
Hue, you have to start the WinClicker BEFORE you click the button that produces the popup. I have a function (right out of the unittests) #Popup clicker def startClicker( button , waitTime = 3) w = WinClicker.new longName = $ie.dir.gsub(/ , \\ ) shortName = w.getShortFileName(longName) c = start rubyw #{shortName }\\watir\\clickJSDialog.rb #{button } #{ waitTime} puts Starting #{c} w.winsystem(c) w=nil end #Then I call it... startClicker (OK, 3) #Then I click the button that produces the popup. ie.frame(rightframe).frame(search).button(:name, Submit).click Hope this helps, --Mark -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Hue Mach Dieu Sent: Monday, July 25, 2005 4:16 AM To: wtr-general@rubyforge.org Subject: [Wtr-general] Click OK button on Popup Dialog? Hi All, My script for click on OK button on popup warning message dialog box, but it doesn't work ie.frame(rightframe).frame(search).button(:name, Submit).click w = WinClicker.new w.clickWindowsButton(Microsoft Internet Explorer,OK) w.clickJavaScriptDialog(OK) Thank for help ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
[Wtr-general] Access is denied and Exception Errors
I checked with the engineer that knows the hardware/software configuration of this application and forwarded him your take on why the error is generated, and here is his answer: I don't think this is the case. All the requests are being processed from one domain. I think the microsoft issue is more in line with a solution... This is the Microsoft issue that I stumbled upon. Ive been trying to get the download of this HotFix from MS, but its not working. The support person I talked to was not very competent. I will have to try again. Just want to let you know and get your feedback on this. Thanks. http://support.microsoft.com/?kbid=889407 ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
[Wtr-general] bug resolution
http://rubyforge.org/pipermail/wtr-general/2005-June/002240.html will this bug be fixed with the new release of watir? (pls see link above) and what's correct way of invoking WIN32OLE.new('Shell.Application') with internet explorer in Watir? Thanks! Jan M. Montano QA Lead / Developer Regional Application Development Thomson (Philippines) Corporation 18th Floor Ayala Life - FGU Center 6811 Ayala Ave., Makati City Philippines (632) 878-5890 ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
[Wtr-general] RE: Click OK button on Popup Dialog?
Hi I define click popup method like this: $LOAD_PATH.unshift File.join(File.dirname(__FILE__), '..') if $0 == __FILE__ require 'watir' require 'watir/WinClicker' include Watir def startClicker( button , waitTime = 0.5) w = WinClicker.new longName = $ie.dir.gsub(/ , \\ ) shortName = w.getShortFileName(longName) c = start rubyw #{shortName }\\watir\\clickJSDialog.rb #{button } #{waitTime} puts Starting #{c} w.winsystem(c ) w=nil end #Then I call it... startClicker (OK, 3) #Then I click the button that produces the popup. ie.frame(rightframe).frame(search).button(:name, Submit).click but I get the error like this ../Util/clickPopup.rb:8:in `startClicker': undefined method `dir' for nil:NilClass (NoMethodError) Thank for help ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
[Wtr-general] can't run googlesearch.rb successfully
Hi! I've installed ruby and watir (latest releases) on another terminal. However, When i run googlesearch.rb this error pops out. What's with this error? and why does this happen now? I have no problem with watir on my original terminal. Thank you. ruby googleSearch.rb ## Beginning of test: Google search Step 1: go to the test site: http://www.google.com Action: entered http://www.google.com in the address bar. Step 2: enter 'pickaxe' in the search text field c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:3620:in `method_missing': Unknown property or method `fireEvent' (WIN32OLERuntimeError) HRESULT error code:0x80020006 Unknown name. from c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:3620:in `set' from googleSearch.rb:33 Exit code: 1 Jan M. Montano QA Lead / Developer Regional Application Development Thomson (Philippines) Corporation 18th Floor Ayala Life - FGU Center 6811 Ayala Ave., Makati City Philippines (632) 878-5890 ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] Access is denied and Exception Errors
At 05:06 PM 7/25/2005, Tuyet Cong-Ton-Nu wrote: irb(main):005:0 ie.frame(main).text_field(:name, UserId).fire_event(onFocus ) try ie.text_field(:name, 'UserId).fire_event('onFocus') Watir won't work with frames served by different servers. I'm giving you a way to keep that from happening. _ Bret Pettichord www.pettichord.com ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] Access is denied and Exception Errors
if one frame is hosted by web1.company.com and the other is hosted by web2.company.com, you will run into a cross-site scripting limitation and get an access is denied error. load-balancing will do this. your engineer's response does not explain why you only see the problem on one environment. At 06:04 PM 7/25/2005, Tuyet Cong-Ton-Nu wrote: I checked with the engineer that knows the hardware/software configuration of this application and forwarded him your take on why the error is generated, and here is his answer: I don't think this is the case. All the requests are being processed from one domain. I think the microsoft issue is more in line with a solution... This is the Microsoft issue that I stumbled upon. I ve been trying to get the download of this HotFix from MS, but it s not working. The support person I talked to was not very competent. I will have to try again. Just want to let you know and get your feedback on this. Thanks. http://support.microsoft.com/?kbid=889407 ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general _ Bret Pettichord www.pettichord.com ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general