hello
this is atul.
first of all find the logical name of that perticuler button.
let if u areworking onbrowser,then do right click on that perticular browser on which that perticular button exists.
and then find the logical name ok that button.
then use this ie.button(:name, put name of that
I tried method 1 and method 2, with no success. I am using Watir 1.5 to support
modal dialogs. Using irb I can access certain portions of the Javascript alert
window, such as the title (I attach to the window by title) and 3 text areas
that are DIV areas. The window has 2 buttons at the bottom.
Schmidt
Sent: Saturday, October 07, 2006 7:07 PM
To: wtr-general@rubyforge.org mailto:wtr-general@rubyforge.org;
[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
Subject: Re: [Wtr-general] Javascript Alert windows
Matt,
The problem is that when the enabled_popup method
I submitted this bug: http://jira.openqa.org/browse/WTR-112
http://jira.openqa.org/browse/WTR-112
Thank you. I've committed the fix. You can either build your own gem
from trunk or else wait for the next development gem (in say the next
week) to confirm.
Would you be interested in unit
Putting in:
==
include Win32
==
without quotation marks, above the:
==
def enabled_popup(timeout=4)
==
is indeed the fix.
-
Posted via Jive Forums
http://forums.openqa.org/thread.jspa?threadID=4715messageID=13079#13079
Matt,
The problem is that when the enabled_popup method was removed from
watir.rb the definitions for GetWindows() definition wasn't moved with
it. Afterwards, the definition for GetWindows was moved in the watir.rb
file so that it is no longer found by enabled_popup.
If you look in the
@rubyforge.org; [EMAIL PROTECTED]
Subject: Re: [Wtr-general] Javascript Alert windows
Matt,
The problem is that when the enabled_popup method was removed from
watir.rb the definitions for GetWindows() definition wasn't moved with
it. Afterwards, the definition for GetWindows was moved in the watir.rb
Thank you, adding include Win32 worked. -- MattJOn 10/9/06, Cain, Mark [EMAIL PROTECTED] wrote:
You could also just put include Win32 right above thedef enabled_popup(timeout=4) in /watir/contrib/enabled_popup.rb--Mark-Original Message-From:
[EMAIL PROTECTED][mailto:[EMAIL PROTECTED]] On
On 10/5/06, Cain, Mark [EMAIL PROTECTED] wrote:
The _javascript_ Alert, Confirm, Prompt, Security, File Save, File Download, File Upload, error message, and login (I think this is a complete list but there may be others) are all a special type of modal popup dialog window—there isn't a different
The _javascript_ Alert, Confirm, Prompt,
Security, File Save, File Download, File Upload, error message, and login (I think
this is a complete list but there may be others) are all a special type of
modal popup dialog windowthere isnt a different one. In
order to handle these types of
David,
I remember this being in the FAQ and
forum posts, but I haven't been in a while -- maybe it was removed (I can't
check at the moment). First you define your script that closes the window
(I called it jsAlert).
def jsAlert(button, waitTime
= 3)w =
WinClicker.newlongName =
Try this:
require 'watir\contrib\enabled_popup'
Your code
# use click_no_wait to click the button that invokes the JS Alert
$ie.button.click_no_wait
hwnd = ie.enabled_popup(5) # get a handle if one exists
if (hwnd)# yes there is a popup
w =
Clever code. My problem is slightly
different. I am testing a product that uses a web based GUI, by navigating to
all GUI controls and collecting data for validation comparisons. This product
generates the _javascript_ alert windows to kindly prompt the user that some
action has been
13 matches
Mail list logo