You could also do:
1. Right Click and select view source
2. Ctrl + f and enter table
3. Click 'Find Next'
NOTE: that is table index 1
4. Continue clicking 'Find Next' (and counting) until the desired table
is reached.
This is tedious I know but works pretty well especially if you have
nested
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 =
This works if you have the CDOEX.DLL on you
machine.
require 'win32ole'
cdoMail = WIN32OLE.new(CDO.Message)
cdoMail.From = [EMAIL PROTECTED]
cdoMail.To = [EMAIL PROTECTED]
cdoMail.Subject =
This is a test
cdoMail.TextBody =
This is a test
cdoMail.Send
cdoMail = nil
I got the same error when I first ran
it. I changed the case of .send to .Send and it worked and continues to
work. You might try retyping that line yourself making sure our
capitalize .Send. I know it shouldnt matter but sometimes it does.
I also ran it line by line in IRB and could see
Do you have any good example on using Builder
and REXML you could share?
Thanks,
--Mark
From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jonathan Kohl
Sent: Wednesday, August 03, 2005
12:18 PM
To: wtr-general@rubyforge.org
Subject: [Wtr-general] XML Logging
Title: Re: [Wtr-general] How to click the Windows'Save'buttonwhendownloading a
file
Try this, it works on my computer. You may
need to change the required path to your Watir install directory. Change
the location to save to to some save path of your choosing
$LOAD_PATH.unshift
Title: Re: [Wtr-general] How to click the Windows'Save'buttonwhendownloading a
file
This also works
$autoit.ControlSetText(Save
As, , Edit1, #{$path}temp.pdf)
--Mark
From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Cain,
Mark
Sent: Thursday, September
I had a similar problem, a set of dropdowns whose values are determined
by whatever is previously selected in the preceding dropdown. Mine happened
to be in a new window that was popped up but the principle is the same. What
I needed to do was look at the View Source for the page and
What about this it worked for me:
'?xml version=1.0 encoding=UTF-8...' + #{a} + '...'
--Mark
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Chris McMahon
Sent: Wednesday, September 28, 2005 2:55 PM
To: wtr-general@rubyforge.org
Subject: [Wtr-general]
Annoying isn't it? 8-P
What I had to do was number my test so:
def test01_login
puts Action 1: ...
#. ..
end
def test02_goto_moduleA
puts Action 2: ...
#..
end
def test03_add_item_toModuleA
puts Action 3: ...
#..
end
There may be a better way of doing it but it worked so why
This will work as long as this statement:
tbl = $ie.table(:id, /someuniqueid/)
is after any dynamically changed items on the page.
--Mark
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mark Gargan
Sent: Friday, October 14, 2005 6:57 AM
To:
What I had to do was do a view source on the page and find
the desired table using IEs find function (searched for
table). Starting at the top of the page I would count the number of
tables (using find next) until I got to the desired tablethe count
number being the index of that table (I
Anyone
else getting double emails fro this address? It has been happening for the
past week.
Mark L. Cain
LMIT -
E*STARS ~ Lead Test
Engineer
1981 Snyder, MSIN: G3-62, Richland,
WA 99354
[EMAIL PROTECTED]
509.376.5458
640
Kilobytes of computer memory ought to be
Try this: assert(@is.checkbox(:value,
other_offers).isSet?)
A good resource for examples like this are the unittests,
which are installed with WATIR.
Hope this helps,
--Mark
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On
Behalf Of Terry Peppers
Sent: Wednesday,
Im
stuck!
I have
an application that generates a reportthe user:
Selects
the reports tab
Chooses
the desired report
Select
the division and date interval to report on
Clicks
the Submit button
When the
submit button is clicked a new window opens (the report itself) with the
Would this also work?:
ie.selectBox.each {|sb| sb.select_value = /MDT|MPT/}
--Mark
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Bret Pettichord
Sent: Thursday, October 27, 2005 10:09 PM
To: wtr-general@rubyforge.org; beth ferguson
Cc:
I figured it out, here it is for those interested:
$ie.select_lists.each {|sb| sb.select_value(/^M(PT|DT)/)}
--Mark
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Cain, Mark
Sent: Friday, October 28, 2005 10:41 AM
To: wtr-general@rubyforge.org
Subject
You might try $ie.status()
--Mark
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Eugene Kula
Sent: Wednesday, November 16, 2005 10:19 AM
To: wtr-general@rubyforge.org
Subject: Re: [Wtr-general] Best practices posting back to parent
windowfromchild window
One of the things you can do is an IE setting. In IE:
1. Select the menu item Tools Internet
Options.
2. Select the Advanced tab.
3. Under the heading Browser, uncheck
the option Reuse windows for launching shortcuts
4. Click Apply
The other option is have your developers force a
I have just the opposite, a website running on SUSE Linux in VMWare and
testing it using WATiR. Not a single problem, although the client
(desktop) version of VMWare doesn't like to persist in a idle state. In
other words I cannot just turn the VM on and let it run indefinitely and
not be
Try something like this using file_field instead of
text_field:
$path =
C\:\\watir_bonus\\working\\Approach.doc
$ie.frame(:index, 5).file_field(:id,
fileName).set(#{$path})
$autoit = WIN32OLE.new(AutoItX3.Control)
$autoit.WinWait(Choose file, Do you
want to open or save this
This you might find helpful http://rubygarden.org/ruby?ScriptingExcel
Also, I was playing around with your script and this worked for me:
sheet = application
sheet.activecell.offset(1,0).activate
--Mark
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Yes, the problem is (:value, Value) in this
line:
ie.file_field(:value,'Value').set(#{path})
The file_field supports these attributes: :id, :name,
:index. Do a view source and find out what the attribute values for your input
type = file tag. If for some reason your developers were
).click
But
still the same behaviour was seen.
The
file field was accessed and the Choose File window opened and
waited till I manually selected the file.
Thanks
Chaya
Cain, Mark
[EMAIL PROTECTED] wrote:
Yes, the problem is
(:value, Value
This has worked pretty well for me.
#Put this method in your script:
def startClicker( button , waitTime = 3)
w = WinClicker.new
longName = $ie.dir.gsub(/ , \\ )
shortName = w.getShortFileName(longName)
c = start ruby #{shortName }\\watir\\clickJSDialog.rb #{button } #{
Then itwaits for me to manually select the file and attach.
I
have ensured that the path is correct and there is atext file viz. file
in the Watir folder.
Thanks,
Chaya
Cain, Mark
[EMAIL PROTECTED] wrote:
Replace all your $autoit lines with this:
$autoit
Here is one thing I see that was a problem for me. I need
to escape the backslashes and colon in my file path. Try using this:
$path = C\:\\Watir\\file.txt
Hope this helps,
--Mark
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On
Behalf Of Cain, Mark
Sent
Title: Tricky checkbox selection
When you installed Watir, the API doc was also
installed. This is straight from that doc:
checkbox(how, what=nil ,value=nil)
This is the
main method for accessing a check box. Usually an input type = checkbox
HTML tag.
* how - symbol - how we access
Title: Tricky checkbox selection
You dont need to just try something
like this.
$ie.checkbox(:name, /Add_member/i,
35).set
You can use regular expressions for your
attribute name if you know part of what that name will be at runtimealthough
it does get tricky when attribute names
=Add_member[]
value=27 /td td Test2
/td/tr
tr td input
type=checkbox name=Add_member[]
value=35 /td td Test3
/td/tr
From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Cain, Mark
Sent: Monday, January 23, 2006
1:38 PM
To: wtr-general@rubyforge.org
Subject: Re: [Wtr-general] Tricky
This is what I would try given the html you sent.
$ie.table( :index, 1 )[1][3].click
If this table is nested inside other tables you will need to
get the index number by counting the tablesstarting at the top-most
tableby doing a:
Right click in the
web page and select View
name=com.cc.framework.state
id=com.cc.framework.state
value=ctrl=pstabset;first=tab1;selected=tab2
alt=src=
Is there a way to use this info to access tab2?
Thanks,
-g
--- Cain, Mark [EMAIL PROTECTED] wrote:
Is the wizard a separate window that opens? If yes
Probably a better use of your time would be to go through the unittests
(in the Watir install directory) for examples of usage. There is not much
that I have encountered that does not have a fairly decent representation in
the unittests; and they are maintained a little better than the
My $.02
I have found the unittests invaluable for leaning a Watir as
well as automation test case structure. I have ripped-offborrowedsome
much from that source, and customized for my need, I cant even begin to
tell you! The learning curve can be steep down the automation path, but
if
Does anyone
know of a tool that can take an existing Python script and convert it to Ruby?
Or has anyone had any experience converting Python to Ruby? I have some
internal scripts that I would like to convert to Ruby and dont want to
reinvent to wheel doing it.
Thanks,
I have
some Watir script I wrote about 6 months ago and needed to do some regression
testing using these scripts. Well when I began running them they were
really slow! Where it used to take 15 to 20 seconds to fill out the page
form now is taking 3 to 4 minutes. I have recently upgraded my
version
of your application. It's possible an application change triggered the performance
problem. Let us know the results.
It would also be nice if you could share the Watir scripts that are slow.
Bret
On 3/2/06, Cain,
Mark [EMAIL PROTECTED]
wrote:
I have some Watir
script I wrote about 6
that
Problem is spelled Probelm below, right?
---Michael B.
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On
Behalf Of Cain, Mark
Sent: March 2, 2006 4:17 PM
To: wtr-general@rubyforge.org
Subject: Re: [Wtr-general] Older
scripts running really slow...
With Watir 1.4.1 (just downloaded
Title: Nachricht
When adding dynamic content to a table what I have had to do
is something like:
#Load the contents of the table and its objects into the
table variable
table = $ie.table(:index, 2)
table[3][2].click
$ie.text_field(:name, ' ctl00$pageBody$FavouriteArtistsTextBox
I have
been trying to get xpath to work in my scripts but have not been able to do
so.
I have
the latest from trunk (Version $Revision: 934 is what it says in the watir.rb
file) and ruby 1.8.4-16 and whatever REXML comes with that.
Here is
the error I am getting:
1) Error:
I am
running into issue where during a test. I select a value from select box (1) and based on
that value a span tag is shown with another select box (2) and I make a selection from that
select box (2).
A little further down in my script I do a search for a checklist and when the
page
performing the Search?
Paul.
On 14/03/06, Cain,
Mark [EMAIL PROTECTED]
wrote:
I am running into
issue where during a test. I select a value from select box (1) and based on
that value a span tag is shown with another select box (2) and I make a selection from that
select box (2).
A little
selections.
Is there a _javascript_ function that resets the select box by any
chance?
Quoting Cain, Mark [EMAIL PROTECTED]:
yes
--Mark
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
[EMAIL PROTECTED]
Sent: Tuesday, March 14
Done. http://jira.openqa.org/browse/WTR-15
--Mark
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On
Behalf Of Bret Pettichord
Sent: Tuesday, March 14, 2006 4:07
PM
To: wtr-general@rubyforge.org
Subject: Re: [Wtr-general] Watir
is resetting one of my selectBox
.
This in any case a bug. Feel free to post it to Jira if you'd like to see a
fix.
Bret
On 3/15/06, Cain,
Mark [EMAIL PROTECTED]
wrote:
I am getting the
following error when the window I have attached to closes and returns to the
main windowactually the main window closes too and the error
Did you intend to put a space between and END_OF_SQL?
str END_OF_SQL
(buncha sql)
END_OF_SQL
it looks like there is not supposed to be one in the documentation.
str END_OF_SQL
(buncha sql)
END_OF_SQL
--Mark
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On
You also might need an '='
str = END_OF_SQL
(buncha sql)
END_OF_SQL
--Mark
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Cain, Mark
Sent: Monday, March 20, 2006 1:13 PM
To: wtr-general@rubyforge.org
Subject: Re: [Wtr-general] OT: big 'ol variables
I had the same problem with one of the application I test
and what I had to do is something like:
$ie.link(:text, 'View Report').click
↓ the
url (or part of) initially displayed in the title bar
ie2 = IE.attach( :url, /index.html/i )
puts ie2.status()
ie2 = IE.attach( :title,
If you are using Windows, I would recommend installing
TortiseSVN at: http://tortoisesvn.tigris.org/.
This is an open source Subersion client that integrated with windows explorer.
Once that is done, right click on your folder on your
desktop (or wherever) and select TortiseSVN
If you could post the code from your script and the HTML
page your testing that would be helpful.
--Mark
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On
Behalf Of Prakash Sattu
Sent: Thursday, March 30, 2006
10:09 AM
To: wtr-general@rubyforge.org
Subject:
You should be able to do:
ie = IE.new
ie.goto 'http://validator.w3.org/'
ie.html
--Mark
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jørgen Bang
Erichsen
Sent: Monday, April 03, 2006 2:01 PM
To: wtr-general@rubyforge.org
Subject: [Wtr-general] W3C
You can type:
Cmd
Echo off
Cd \ruby\bin
Irb
Ruby code here
But this is just a command window inside
SciTE. It is a much better experience via a command window. If you
want an IRB window inside your editor, download the latest version if FreeRide
and it has one built in.
You need
to have defined the startClicker() method somewhere in your script. It is
mostly reliable.
Do something
like this:
require
'watir/WindowHelper'
require 'watir'
require 'toolkit/onc_login'
require 'toolkit/onc_logout'
require 'toolkit/_javascript_Hd'
# Add
this method to
Try something like this to get all select_list
contents:
myList = $ie.select_list( :name, 'select1').getAllContents
If you wanted to select everything in the
list you could do this:
for lst in myList
$ie.selectBox( :name, 'select1').select(#{lst})
end
Hope this helps,
This is right out of the pickaxe 2nd edition
pages 336 - 337.
__FILE__ String The name of the
current source file. [r/o]
The constant __FILE__ and the variable $0 are often used
together to run code only if it appears in the file run directly by the user. For
example, library writers
If you are not aware of this Microsoft change to Internet Explorer then
you should be since FLASH is an ActiveX implementation in IE. The result
of this change will require some human interaction (clicking the spacebar or enter
key) before the FLASH object will be invoked inside IE. I dont
Komodo is a pretty good IDE and has a good debugger but the
personal version cost 30 buckI have also had some performance problems with
this IDE with Watir version 1.5.x. If you want free, try Eclipse with the RDE and
the SVN plug-ins. Eclipse is the one I end up using the most.
a data structure helped any more than simply using Emacs
breakpoint.
--jw.
On 5/3/06, Cain, Mark [EMAIL PROTECTED] wrote:
Komodo is a pretty good IDE and has a good debugger but the
personal
version
cost 30 buck-I have also had some performance problems with this
IDE
You might have to play around with different combinations of
this but try:
$ie.frame(:name, name).show_all_objects
$ie.frame(:name, id_name).frame(:name, nested_name).show_all_objects
Whatever object are displayed can be accessed at that
level. You may need to do a Veiw Source on
Did you try:
#doesn't appear that your select_list has a name or id given so you will
#have to find the index-it will be the nth one from the top of the page
#using view source.
$ie.select_list(:index, 1).select_value('0')
or
$ie.select_list(:index, 1).select('All')
--Mark
There must be something else wrong because I put the following in a web
page:
input type=radio name=selectionids
value='8bf19f48-9462-4285-90ef-241f4fd5f7f7'
input type=radio name=selectionids
value='8bf19f48-9462-4285-90ef-241f4fd5f7f8'
input type=radio name=selectionids
I have seen significant slowness running my scripts (1.4.1
and 1.5.1) from inside Komodo 3.5 compared to the same scripts inside EclipseEclipse
is much faster.
Pouncer Note: I only run them inside the IDE when
writing and/or debugging and NOT during actual testing. Just in case you
were
Cut and paste this method in your script exactly as is:
# method to click JS popups
def startClicker( button , waitTime = 3)
w = WinClicker.new
longName = $ie.dir.gsub(/ , \\ )
shortName = w.getShortFileName(longName)
c = start ruby #{shortName }\\watir\\clickJSDialog.rb
I was attempting to use text.include? like:
$ie.text_field(:name, MyText).text.include?
My text to verify
And I get this message: warning: parenthesize argument(s) for future
version
Am I getting this because I am using text.include?
incorrectly or something else?
Thanks,
I ended up having to put a sleep 2 in winClicker to get this
to click the button. At approximately line 299 in WinClicker.rbthis
section:
if d != -1
makeWindowActive(hwnd)
sleep 2
clickButtonWithHandle(d)
else
After I added this then it would click the specified button.
What you are trying to do can't be done with the version of Watir.rb you
are using because the page you are trying to attach to is a Modal
window. Try this one at:
https://svn.openqa.org/svn/watir/branches/modal_dialog/watir/ (you will
also need the files from the Watir folder--the IEDialog and
Starting at the topmost delete button, count them until you get
to the desired button.
$ie.button(:index,3).click -- would click the third from
the top delete button on the page.
--Mark
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On
Behalf Of VIKASH KUMAR
Title: Install problem?
I have always had to install rubygems for a new ruby
install.
Get the gem here:
http://rubyforge.org/projects/rubygems/
Download it somewhere. Open a command prompt and
navigate to where you downloaded it. Type gem install rubygems*.gem
This fix the same
Windows XP PCs (one SP1, the other
SP2).
Ben
-Original Message-
From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]On Behalf Of Cain, Mark
Sent: Tuesday, July 18, 2006 8:14
AM
To: wtr-general@rubyforge.org
Subject: Re: [Wtr-general] Install
problem?
I have always had to install
You could do something like this:
dbList = $ie.select_list( :name, 'assigned').getAllContents
for dbl in dbList
$ie.selectBox( :name, 'assigned').select(#{dbl})
end
Hope this helps,
--Mark
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On
Behalf Of
Of Cain, Mark
Sent: Tuesday, July 25, 2006 9:45
AM
To: wtr-general@rubyforge.org
Subject: [Wtr-general] IE7 and
Popups
I
have recently started having to regression test all our web applications using
IE7 beta3. Most everything seems to work except pop-ups (Confirms,
Alerts, and Prompts). This part
Title: Proxy server login
In IE there are several authentication settings. Open IE
Tools Internet Options and click the security tab.
Click the custom levels button and scroll down until you reach the User
Authentication area. Most applications authenticate to the currently logged
in
Do you see this -- Web Page Dialog in the title bar of your popup
pages? If yes then you are dealing with a modal web page and you will
NOT be able to attach the normal way using Watir.
--Mark
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Eric
Sent:
I am
getting the following error when I click a Save button on a
page. The application has several tabbed pages and on each is the same Save,
Submit, and Clear button pattern. The other tab pages click the
save button without error. This error occurs after attaching and closing
a Non-modal
closes then only a very small part of the object show in
the output, and then the error.
--Mark
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On
Behalf Of Cain, Mark
Sent: Thursday, August 31, 2006
10:46 AM
To: wtr-general@rubyforge.org
Subject: [Wtr-general] Error
When buttons all have the same names and id etc, you will need to use
$ie.button(:index, x).click where x is the 1-based index of the button
you want to click (from the top down). So if there are 3 cancel buttons
on the page and you want to click the 2nd one then your code will look
like this:
Using :index it doesn't. What it is doing if finding the Xth button
from the top of the page (you could count them from view source). I
have to use this quite often in the applications I test because of
auto-generated page elements which use the same button attributes (id,
name, and values) for
Make sure the default ruby install directories (bin and lib) are in the
PATH environment variable. The ruby installer should have done this by
default, but maybe it didn't. For me it is:
C:\ruby\bin;c:\ruby\lib
Hope this helps,
--Mark
-Original Message-
From: [EMAIL PROTECTED]
What appears to be happening is the $ie object is not
retaining the page objects during the attachment to the non-modal window (I am
probably not describing this right). Because when I put these two line of
code:
table = $ie.table(:index, 8)
table[1][5].click
Immediately after when
This was code I wrote awhile ago (when $ie.wait didn't work right) and
was getting back to update.
The call to $ie.wait? didn't work but $ie.wait did (seems to be a bit
faster then before).
I still get the same error message I originally posted until I put call
that reloads the page in, and
/tc_PER_Significant.rb:261:in `test5_ca'
--Mark
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Bret Pettichord
Sent: Tuesday, September 05, 2006 12:57 PM
To: wtr-general@rubyforge.org
Subject: Re: [Wtr-general] Error clicking a button...
Cain, Mark wrote
Will this handle modal windows and JS popups now? Has that modal window
code been merged into the main branch now?
--Mark
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of David Schmidt
Sent: Monday, September 11, 2006 9:07 AM
To:
Yes. What I do is write out to a file page load times before and
after application changes. I have to rename the output file between runs.
It is pretty simplistic but need some down and dirty perf numbers.
require 'date'
def test_myPerfTestCase
$start = DateTime.now
code here
I am getting
this error:
1) Error:
test0_Acquire_Add_Comments(TC_Acquire_New):
SystemStackError: stack level too deep
C:/ruby/lib/ruby/site_ruby/1.8/watir.rb:2574:in `attach_command'
C:/ruby/lib/ruby/site_ruby/1.8/watir.rb:2574:in `attach_command'
, Cain, Mark [EMAIL PROTECTED] wrote:
I am getting this error:
1) Error:
test0_Acquire_Add_Comments(TC_Acquire_New):
SystemStackError: stack level too deep
C:/ruby/lib/ruby/site_ruby/1.8/watir.rb:2574:in `attach_command'
C:/ruby/lib/ruby/site_ruby/1.8/watir.rb:2574
What happened to the enabled_popup method? I have been using it quite
effectively up through 1081 and in 1084 it is gone. Was this replaced
by a better more robust method, or is there a preferred method to
replace this functionality? I know Watir is being changed to add new
features, and fix
This (I believe) was fixed 1095. You can
download the latest gem at:
http://wiki.openqa.org/display/WTR/Development+Builds
--Mark
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On
Behalf Of Alan Ark
Sent: Monday, October 02, 2006
2:53 PM
To:
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 =
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
file so that it is no longer found by enabled_popup.
If you look in the watir.rb file for GetWindow and move those
definitions into the enabled_popup.rb file then it should work fine.
David Schmidt
Matt Johnson wrote:
On 10/5/06, *Cain, Mark* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
wrote
I haven't had this issue using Ruby 1.8.5_21 and Watir 1.5.x.
--Mark
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Bret Pettichord
Sent: Monday, October 09, 2006 10:04 PM
To: wtr-general@rubyforge.org
Subject: [Wtr-general] Wikipedia Article Feedback
You cannot use Watir to test Flash application. There are
tools like WinRunner that can use screen coordinates to input and click on
objects, but that is very problematic because if anything on the screen changedeven
a different monitor can affect ityour test will fail. I have been
told
defeat the purpose
of
having an ID altogether?
I agree that the name attribute is apparently not subject to the same
restriction, though.
---Michael B.
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Cain, Mark
Sent: October 23, 2006 10:20 AM
To: wtr
@rubyforge.org
Subject: Re: [Wtr-general] Question from a newbie
Cain, Mark wrote:
Excuse me but aren't we talking about IE here?
Not that i was aware of. My understanding is that the topic at hand was
whether the HTML generated by a web application was conformant to WC3
standards and whether non
This is a shot in the dark but did you try explicitly setting the
WinClicker object w to nil after the popup is dismissed?
...
if (hwnd)
w = WinClicker.new
w.makeWindowActive(hwnd)
w.clickWindowsButton_hwnd(hwnd, OK)
w = nil
end
...
OR You could create the WinClicker object when the
mention above.
Thanks,
-Dara
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Cain, Mark
Sent: Thursday, October 26, 2006 10:02 AM
To: wtr-general@rubyforge.org
Subject: Re: [Wtr-general] modal dialogs in IE 7.0
Dara, I had the same problem, when I
Which version of Watir are you using?
--Mark
From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Garry West
Sent: Monday, November 13, 2006
5:04 AM
To: wtr-general@rubyforge.org
Subject: [Wtr-general] Using watir
to control _javascript_ popups
I am new
Try
require 'watir'
...
@ie = Watir::IE.new
Instead of
@ie = WIN32OLE.new('InternetExplorer.Application')
You could alternatively edit the setup.rb file to be for your tests anh
just require it $ie and the logger are both initialized in that file.
Also, take a
I have had some similar problems in the past. As it turned out the
server IP the forum comes from was on the Spam Block list for the entire
license class (if I said that right) any way, I had to have the
cyber-security guy open up the spam filter to allow the specific IP for
the forum. Problem
If there is one I have never found it. What I have had to do was do a
view source on the page. I then do ctrf, enter 'table' (without the
'') into the search field, click the Next button and--starting at the
top--start counting. The indexing is one-based so when you get to the
desired table
1 - 100 of 140 matches
Mail list logo