-David
---
I've been using the XLS interface class to get data for data-driven
tests, but now I'd like to write data out to an Excel spreadsheet.
Does anyone know if there is a list of the available methods for the XLS
interface class
Bret, I've filed the issue in Jira as low priority. The ticket# is:
WTR-165
Thanks for your help.
-David
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
w/html to
look at but it's not.
Thanks!
-David Brown
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
of these delay problems were fixed... Until now.
Now that this issue has surfaced I'm forced to put the manual delays in
again. It is not a big deal to do this, but, it's always cleaner if
watir handles the delays properly.
-David
From: Bret Pettichord [EMAIL PROTECTED]
Brown
/WTR/Watir+Training+Presentation+and+Exerc
ises
-David
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
=[/Watir/,/String/,/Array/]) do
# some watir test script code goes here
end
I hope some of you find this helpful!
-David
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
to directory,
before executing your script
cmd = ruby -C#{session[:suite_dir]} [EMAIL PROTECTED] -f -v verbose
#{session[:console_filename]}
...
end
-David Brown
--
Message: 5
Date: Wed, 28 Mar 2007 14:28:56 CDT
From: John Lolis [EMAIL PROTECTED
+Testing+Example
-David Brown
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
I have noticed that this site (wiki.openqa.org) works fine with firefox
but doesn't seem to work with internet explorer.
-David
From: swarna latha [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 06, 2007 6:49 PM
To: Brown, David
Cc: [EMAIL PROTECTED]; wtr
to be overridden:
-Initialize()#opens an excel file
-getRangebyLabel()#finds a range of data dynamically
-getWorksheet()#finds a worksheet to use
-get2DArray()#returns a 2D array of data based on a given range and
worksheet name.
-David Brown
--
From: Paul
of directly using ruby's win32ole
library to interface with Excel, and makes it much easer to create
data-driven Watir tests.
I hope it will be as useful to others as it has been for me.
-David Brown
___
Wtr-general mailing list
Wtr-general
Thanks for help!
-Dave
-
Posted via Jive Forums
http://forums.openqa.org/thread.jspa?threadID=6361messageID=18083#18083
___
Wtr-general mailing list
Wtr-general@rubyforge.org
Hello,
I've found a couple posts that indicate that snagit's COM server can be used
to capture screenshots while Watir runs tests.
I've tried to implement something with this, but I am having trouble with
the Autoscroll options. I have not been able to figure out how to set
capture options
into certain modes from text entered. Ive tried modifying the
source to generate the right codes but doesn't work. Is there a way to make
it set the correct key codes?
Regards
David
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org
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:
The JavaScript Alert, Confirm, Prompt, Security, File Save, File
Does Watir have a way of processing _javascript_ Alert windows,
by clicking the OK button to dismiss the window? The code that invokes the
window issues an alert call with no window handle. I did not find anything on
this in the online docs or in the email dist.
, 2006
1:40 PM
To: wtr-general@rubyforge.org
Subject: Re: [Wtr-general]
_javascript_ Alert windows
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
code was inappropriate or
didn't work, but I'll let my code and methods stand for themselves and I
welcome peer review, comments and improvements to my contributions.
David Schmidt
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http
I am building test automation for a product that displays
_javascript_ alert windows, for which no window handle exists. They act like
modal windows since they wait for a user mouse click on a button (and pause the
automation run). Is there a way with watir to simulate the button click?
the rows
in it's OWN table, and sub-tables would be accessed for their row count,
but others have been afraid of breaking existing tests which already
account for the inaccurate count.
Hope this helps you address the cells in your nested table situation.
David Schmidt
Vincent Predoehl wrote:
I'm
enabled_popup to determine if a popup window was showing).
This function is of general use and won't cost much in terms of code
size, so why not let it remain?
David
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr
I want to invoke a modal dialog
window and navigate through its buttons, radio buttons, and lists. I am using
watir 1.5.1081. The object that launches it is described as follows:
Active Element: [TD], Frame:
[fraBanner], Index: [29]
TD
IMG
height=30
src="" width=69
IMG
++ casting to give us the same type of handle.
Javascript or browser popups are different as they aren't based on HTML,
so other methods are required to handle those, but once you attach to
them, modal dialogs are easy!
David
[EMAIL PROTECTED] wrote:
Hey
In that case, how do I fetch
It's been a while, but I think I found the code in WET or perhaps in
someone's blog, but in any case my statement here was to acknowledge
that I didn't write that code, and to give credit to the author.
David
Bret Pettichord wrote:
David Schmidt wrote:
but I found some special code
Jason, check out
http://forums.openqa.org/thread.jspa?threadID=4012tstart=0 for a
routine I use to wait for a page to load, checking for possible popups
at the same time. It uses Watir::until_with_timeout. See if that helps.
David
Jason Alexander wrote:
Doing some Googling, it appears
Has anyone discovered a solution to the following?
I built a test tool with Ruby/Watir (1.4). When I upgraded
to Watir 1.5.1.1081 so that I could control modal dialog windows, suddenly the
watir attach_browser_window call is unable to locate the main IE window by
title. I tried other
report.
David, It look like you are running the core_tests.rb. Ruby
windows_tests.rb to run the unit tests for IE.attach.
Bret
David Munns wrote:
Has anyone discovered a solution to the following?
I built a test tool with Ruby/Watir (1.4). When I upgraded to Watir
1.5.1.1081 so that I
I uninstalled all Ruby and Watir versions, installed Ruby 1.85-21 and
Watir 1.5.1.1081. Running the Watir unit tests (ruby window_tests.rb)
cause the IE information bar to keep prompting me allow blocked
content? which appears to mess up the unit tests (failures and errors).
Various attempts to
even *started*) loading.
Because of that you may not have even had a valid page when you
performed the assert. Try putting in an @ie.wait after clicking the
button and before the assert and see if that helps.
David Schmidt
___
Wtr-general mailing list
://wiki.openqa.org/display/WTR/Development+Builds and that version
has enabled_popup().
David
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
d.document.ole_methods
= [setAttribute, getAttribute, removeAttribute,...
No fireEvent, as the error message below stated.
Željko, are you sure that the right click event was in the DIV and not in
another element inside of the DIV?
David Schmidt
Bret Pettichord wrote:
I believe
support working and the IE.enabled_popup call is now in so
you can tell when *any* type of popup is being displayed.
In addition, click_no_wait now works on elements in a sub-frame.
David
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http
I have been actually using a variation of that and it wont work
ie.div(:id, detailProposal0610760).fire_event(rightclick)
It highligts it like it wants
If I did mouse down and mouse up commands somehow, couldnt I in theory figure
out a way to drag and drop?
-
Posted via Jive Forums
http://forums.openqa.org/thread.jspa?threadID=4005messageID=11073#11073
I posted what I get in the prompt in the post above yours(added it in) It
should bring up a small pop up window smiliar to if you right click any where
on a webpage, with just different options.
-
Posted via Jive Forums
you
use the element:
myframe = ie.frame(:name, frame3).frame(:name, frame4).frame(:name,
tframe1)
puts myframe.html
myframe.select_list(:name, fromedate).flash
Your Watir code also ends up a lot more readable without the very long
lines :-)
David
haggard wrote:
Ah, here's a tip. Use
server is already running?
David Schmidt
Dave Hoover wrote:
I have just released a Ruby on Rails Plugin that allows for easy Watir
testing in Rails. To install the plugin in your Rails project,
execute
./script/plugin install svn://rubyforge.org/var/svn/watir-on-rails
You can then use
Here I go with another newb question, how can you do a right click? instead of
.click would it be .rightclick? I do look for the answers before I post these
things, but im lost again.
-
Posted via Jive Forums
] contained a table with 2 rows then
ie.table[2][1] would be the first row of the sub-table, NOT the 2'nd row
in ie.table.
David
Attebery, Bill wrote:
One way I can think of - not necessarily the best, based on some posts
I've seen there seems to be the concept of cell in 1.5 that I haven't
been able
Doesnt work
-
Posted via Jive Forums
http://forums.openqa.org/thread.jspa?threadID=3917messageID=10851#10851
___
Wtr-general mailing list
Wtr-general@rubyforge.org
I cant pull up irb. I am in the command prompt, it is defaulted at
C:\Documents and Settings\user I have typed in irb here, I have changed the
directory to just C:\ and tried.
-
Posted via Jive Forums
1 javascript:logout();
Log Out
2 http://www2.lymba.com/test/propmen3/documents/Pana
lyst_UserGuide.pdfUser Guide (PDF)
3 http://www2.lymba.com/test/propmen3/documents/Pana
lyst_UserGuide.pdfUser Guide
4
Ok so I just started using ruby and watir, when I say just started I mean no
programming experience. The company I work for has me using/learning Watir. I
can't make it click a button. I can make it click other buttons though. The
software we developed doesnt use buttons per say, but something
I want to say thanks to everyone, I am trying to understand. With the
$ie.button(:index, 2).click command how does it know that it is looking for
Cancel. This is the html source I am trying to pull from:
a class=right button id=sessionDialogCancel
href=JavaScript:hideSessionDialog();Cancel/a
Apparently I need more help than thought. I have tried all of the ideas every
one has given me(thank you). I am still unclear on how to use index or flash
method. The button or link I am trying to get to, I have done many others just
like it, but for some reason I cant get it to press cancel
is to use the command line with the /console argument.
*mstsc /v:servername /console*
**Hope that helps,
David Schmidt
Lillis, Dara wrote:
I run my Watir tests on remote pc's. I would like to manage the remote
pc's using Remote Desktop, but encounter the following problem:
When running tests
tests using regular
expressions in :id and :name searches.
David Schmidt
Charley Baker wrote:
Actually I can tell you why this is happening, it's related to the
issue I was looking at yesterday, ie.element(:id, 'foo') actually
searches by Name: http://jira.openqa.org/browse/WTR-77
Both
sessions on one Windows box with many
modal dialogs and I'm not having any problems with simultaneous modal
dialogs because I have click_no_wait attach by HWND instead of by window
title.
David Schmidt
Bret Pettichord wrote:
James wrote:
I should note, this script will work just fine
Watir 1.5.1.1079 should fix this problem. A patch of mine improperly
allowed a Regexp to be passed to DOM's getElementById() call.
David
Adrian Lewis wrote:
I think we got a problem with RegEx watir 151.1054
this'll work fine
def password_field;$ie.text_field(:name, 'password');end
if object.style.invoke('display') =~ /^none$/i
return false
end
if object.invoke('isDisabled')
return false
end
rescue WIN32OLERuntimeError
end
object = object.parentElement
end
true
end
end
David Schmidt
[EMAIL PROTECTED] wrote:
Is there an easy way to determine if a control (a checkbox in my case
is running as a different user. In
addition, the logged in user cannot see any IE window created by another
user.
We haven't come up with a solution for this problem as it appears to be
a problem in User32.dll used by Shell.Application.
David
Bret Pettichord wrote:
Lonny Eachus wrote:
Wow
in 1.4.1. (Find
table with index of 1, then find row 1, column 1.)
David
Mike Townley wrote:
Using the following HTML:
html
head
title
celltest
/title
/head
body
table
trtdtest/td/tr
/table
/body
/html
I attach to the window and run ie.cell(:text, “test”).exists? and irb
Done: http://wiki.openqa.org/pages/viewpage.action?pageId=1119
The wiki editing isn't exactly obvious, and it kept complaining about
the page title I used. Feel free to pretty it up if you like, but
there's an example of extending Watir up there now.
David
Charley Baker wrote:
Hi David
on the page with:
ie.cell(:text, 'Parties').click
You can also regular expressions in the search:
ie.cell(:text, /Par/).click
David Schmidt
[EMAIL PROTECTED]
Chintakrindi Meghanath wrote:
Hi
I am trying to click a Tab in my application . I tried with various
combinations, but couldnt
OK, that may be a feature of the 1.5 development thread, which I'm
running here. Did you try it with the quoted version?
ie.cell(:text, 'Parties').click
I've found the 1.5 versions to be very stable and worth running, BTW.
David
Chintakrindi Meghanath wrote:
Hi
I tried with ie.cell
to all of the winClicker.rb methods
which use DL.callback and my testing confirms that I'm no longer having
a problem with that exception.
I've checked this fix into the 1.5 development trunk as revision 1070.
David Schmidt
[EMAIL PROTECTED]
___
Wtr
:\ruby\bin\gem' list)and was able to get into IRB using wcmd.
Has anyone else been running Watir under Wine that could give me some
pointers on how to get Ruby and Watir configured correctly to run under
Wine or CrossOver Office?
David
___
Wtr-general
I have a table that dynamically has an "n" number of entries as links. The table can sort by the last entry made in the table. I want to be able to click on the last entry or the last link that appears on the table. The problem is that I don't have attribute values to able to identify the link
Zeljko,
Your problem is that that second require should be include Watir
(with no quotes). When you did the second require you got messages for
all the constants that were being re-defined.
David
Zeljko Filipin wrote:
I do not know if this has any value:
gem list
*** LOCAL GEMS
trunk.
David
Bret Pettichord wrote:
This is a known problem. (In other words, i knew about it, but it
wasn't well documented.)
http://jira.openqa.org/browse/WTR-6
The fix is for a Watir developer to write attach_command for Frames.
David, this bug is currently assigned to you
in the field is contained in the
value attribute. Thus:
ie.text_field( :value, 'xyz' )
Should work for you.
David
Manish Sapariya wrote:
Thanks.
This explains why I was getting all of my field getting flashed multiple
times
when I was traversing them by tables.each { cells.each { flash
was waiting to
appear and then disappear.
David
Bret Pettichord wrote:
How about this:
wait_until(ie.button(:value, OK).exists?, 10)
The advantage of this form is that we could use any boolean
expression. So you could wait until a control was disabled or
whatever. I'm not 100% sure that i
the page in IRB and do '$ie.show_links' to see
which index to use for the link you want.
David
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
until the block
returns true or the timeout has passed (where it will throw an exception).
David
Andy Sipe wrote:
I'm not sure just exist is enough for what I'm talking about.
If I have a span that already exists in the document and I do something that
causes an async request/update
Yup, my bad. I just typed the wrong name out of habit. New name will
be wait_until.
*SLAP*
Ouch!
OK, I've been punished.
David
Bret Pettichord wrote:
On 6/13/06, *David Schmidt* [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED] wrote:
The wait_for method will just keep trying
problems till
all the unit tests pass.
Bret, do you want me to start on this?
David
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
this problem running some web scrapers simultaneously to the same
site from the same computer. We solved the problem by running each
scraper under a different user so each scraper got it's own folder for
cookies and they then stopped overwriting each other.
David
Michael Bolton wrote:
This isn't
= ie.text_field(:id, 'xxx').html.sub(/
onclick=\S+/, '')
which clears out the onclick=... from the element.
David
Bret Pettichord wrote:
On 6/1/06, *Tyler Prete* [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED] wrote:
Well I may not even have to deal with it anymore, but how would I
change
Zeljko Filipin wrote:
ie.radio(:id, id).readonly?
On 6/1/06, *Adrian Rutter* [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED] wrote:
Hi,
I have an HTML field that once saved becomes read-only
[readonly=true].
Apart from doing a regex on the source how can I determine this
to IE you can do things like element.document.ole_methods to see
what IE will let you do.
Hope that helps,
David
Tyler Prete wrote:
I am trying to get a frame on a page to load a specific page, i.e.
$ie.frame(:name, 'name').goto(' http://specificsite.com'
http://specificsite.com%27
that the frame main has the button you want, you should be
able to click on it by using:
modal.frame('main').button(:text, 'Yes').click
Let me know if that works for you.
David Schmidt
Neri, Marco wrote:
Hi
I'm running v1.5.1.1017. I need some help re modal dialog.
I'm using this code
the HTML for the radio buttons then we'll have a better chance to
help.
I'm going to be away from the computer for a few days, but if you're
still having problems next week I'll continue to try and help.
David
Jassi Akkal wrote:
David,
Do I have to have 1.5 version of the watir because I
am
before the page/frame is completely ready.
Fix would similar to the one in wait where you make sure a document is
available:
(from IE#wait)
until suppress_ole_error [EMAIL PROTECTED] do
sleep 0.02; s.spin
end
David
Bret Pettichord wrote:
This looks like a new problem
Bret Pettichord wrote:
On 5/24/06, *David Schmidt* [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED] wrote:
This is the same problem that was occurring in wait(). The COM object
document method is called when the document method isn't available.
I've seen this if a page or frame
:
a href=javascript:quitar(2) id=quitar2
style=visibility:hiddenQuitar/a
Try:
$browser_popup.frame('responseFrame').link(:id, 'quitar2').click
to click the link following the img2 image.
David Schmidt
[EMAIL PROTECTED]
Rodrigo Julian Martin wrote:
Thanks for the answer Lonny, and sorry
what changes you make betwen this working and
not working?
David
Manish Sapariya wrote:
I get following error when I run my script. However when I run script with
the defaulting function alone, it works fine.
Any ideas? Has anyone run into this kind of issue.
Please let me know if you need more
Watir script and modify for your own use. (The current script calls our
own log method so that will probably need to be changed.)
Hope that helps.
David Schmidt
[EMAIL PROTECTED]
Adrian Rutter wrote:
Hi,
I was wondering if Watir had a method that will make the script wait until
a specific
can click on it by just using the value as in:
ie.radio(:value, '8bf19f48-9462-4285-90ef-241f4fd5f7f7').click (or .set)
If there *is* a closing quote then either of those should work.
David Schmidt
[EMAIL PROTECTED]
Jassi Akkal wrote:
Hi,
I am very new to the watir and i have been struggling
, 'select id').select('All')
David
George Hawthorne wrote:
Hi,
Could anyone suggest the correct way to select option 0 from the
list shown in the following HTML example? By default option 1 is
selected and I can't figure out how to get WATIR to change the
selection. TIA.
input type=hidden
load up an external
Subversion client and see if I can import the projects from a local
directory checked out using Subversion.
David
Bret Pettichord wrote:
David,
Zelko sent you the SVN url. Please send a patch (or attach it to a
Jira task).
We'll need to make sure we have unit tests
Bret Pettichord wrote:
On 5/11/06, *David Schmidt* [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED] wrote:
Bret and all,
I was overjoyed to find the Watir::IE#attach_modal() method in the
current development tree and quickly started experimenting in IRB
to see
how best
I added a comment to that JIRA bug and can make a patch if necessary,
though the fix is simply moving the html method from Watir::IE to the
Container Module.
David Schmidt
Paul Carvalho wrote:
This is a known problem in 1.5. The description is perhaps not clear
enough to be found
() in the case statement to allow to attaching to
an IE instance by :hwnd:
when :hwnd
# find window by HWND
log hwnd is: #{aWin.HWND}
ieTemp = aWin if (what == (aWin.HWND))
David Schmidt
[EMAIL PROTECTED]
--
Yes, this problem will need to be fixed before we release
as' parameter to specify the
user for each Watir process.
Hope that helps,
David Schmidt
[EMAIL PROTECTED]
John Fitisoff wrote:
Help! I'm new to Watir, and am trying to get my
company to use it, but am running into a problem. I'm
trying to run multiple, independent windows without
having them
lick(); $ie.text_field(:name, "AdjustAmt").set("1000") $ie.text_field(:name, "ReasonText").set("This is a test") table = $ie.table(:index, 19) sleep 1 table[1][3].image(:name, "createbottom").click assert($ie.contains_text($no_permission_msg)) !
$ie.link(:text, "Settings").click(); end endAny ideas?Thanks David ___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
ate')" ONMOUSEOVER="imgswap('updatetop', 'form_top_update_over'); return false;" ONMOUSEOUT="imgswap('updatetop', 'form_top_update_up'); return false;"img NAME="updatetop" src="/images/admin/form_top_update_up.gif" value="Update" border="
I am trying to do the scripting 101 tutorial. I installed everything as directed. The server is running, ruby and watir is installed. In fact, I am able to run the unittest demo that came with watir. However, when i try to execute watir from irb I get the following error.irb (main):001:0
87 matches
Mail list logo