Re: [Wtr-general] How do I click the OK button on a java alert?

2007-04-05 Thread shalini
Hi all, I am new to ruby, and have searched these forums for answers, but have not found anything that seems to work or help me. (including links to FAQ's which do not appear to be available anymore) Situation: I am writing ruby/watir scripts to automate tests against a website/application.

Re: [Wtr-general] How do I click the OK button on a java alert?

2007-04-05 Thread Anupama Kaple
\\clickJSDialog.rb #{button} #{waitTime} puts Starting #{c} w.winsystem(c) w=nil end Thanks Regards, Anupama Date: Thu, 5 Apr 2007 00:59:09 -0500 From: [EMAIL PROTECTED] To: wtr-general@rubyforge.org Subject: Re: [Wtr-general] How do I click the OK button on a java alert? Hi all, I am new to ruby

Re: [Wtr-general] How do I click the OK button on a java alert?

2007-01-09 Thread liucongying
ans1 = objAutoit.ControlClick(Microsoft Internet Explorer,'', 'OK') the syntax is wrong, what is the ,,' in (Microsoft Internet Explorer,'', 'OK') ? - Posted via Jive Forums

Re: [Wtr-general] How do I click the OK button on a java alert?

2007-01-03 Thread Nathan
Hey, so it seems like you're getting some mixed ideas here. First thing, WATIR uses AutoIt to click on JavaScript or Modal dialogs from IE. Second AutoIt isn't flakey - it's very solid, but you need to know how to use it. I have a solution to clicking on modal dialogs, and I just run it when

Re: [Wtr-general] How do I click the OK button on a java alert?

2007-01-02 Thread Cain, Mark
I have found Autoit a little flaky. You can use what is already built into Watir. Here is a method I wrote to handle most of my popup needs.. You will need to use the newest gem if Watir (get it here http://wiki.openqa.org/display/WTR/Development+Builds) : require

Re: [Wtr-general] How do I click the OK button on a java alert?

2006-12-19 Thread Vince
Qaos, Well, there's a very good reason that you cannot attach to the modal box - it's not an actual browser window. IE modal dialogs, because Microsoft hates us, are actually javascript dialogs that the browser handles. These are an IE only thing, and have been a problem in Watir from the

Re: [Wtr-general] How do I click the OK button on a java alert?

2006-12-15 Thread Mark
I managed to get around the hang, however, It would be nice to know how to get ahold of this window to do some validating against it. The way I got around the Hang was to put '.click_no_wait' on the call to click the help button. this way it clicks the help button (which produces the dialog