Hi,
I want to run five ruby programs from a single ruby program.
I used
load file name.rb require file name. rb
as their are multiple programs each contains new excel application to
open, all the excel application opens simultenously but only the last call
was succeed, the first four
Hi,
I have a bit of a code structure problem, I wonder if any-one can help?
I instantiate the IE class and assign it to a global object
$ie = Watir::IE.new
def browser;$ie;end
I go through an Object Map using Module constants
module Login
USERNAME = browser.text_field(:name, 'user_name')
Hi Charley and Paul,
If I use rescue true in the method, i wont be getting any error all the methods
will execute. But, the method which has error does not shows what actual error
it has.
Here is the code which i executed
def test_yahooSite
test_site = 'http://www.mail.yahoo.com'
$ie
instantiate $ie in setup or don't close browser in teardown - when you
close browser, $ie is closed (because browser is just a reference to the
same object) and thus unavailable going forward.
#the setup method is executed before each test method
def setup
i am using the screen_capture function which i have working correctly.
How do i specify the path where i want to save the image file?
screen_capture(C:[EMAIL PROTECTED]
jpg , true, false)
this doesn't work, anybody tried this??
Cheers,
Matt
-
Unable to locate object, using index and 5--- This is the exception
thrown.
Do you get anything if you try smaller values of index, like 1 or 2?
It might choose the wrong one, but you would know if it's working at
all.
I think what he meant was he wants to execute each and every statement without
considering whether the previous statement was failed.
So the solution would be like putting try rescue catch block around around each
line and code won't look professional.
Is there any flag in watir that can be
I ran across this, and it's worth sharing...
Dan Manges blogged about what he calls Ruby anti-patterns. I might
argue with some of them, but he's got some great examples of efficient
ways to do some things that we all do every day:
http://www.dcmanges.com/blog/28
Some more info. The application i'm testing uses a lot of frames.
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
There's no flag in watir to swallow all exceptions, that's rather
dangerous behavior and not recommended. You could wrap methods with
begin/rescue blocks and print out the exceptions as they occur - follow
Zeljko's example above and the more specific the exceptions you catch the
better.
I'd
It's likely your frames are throwing errors with cross site scripting
issues. You might try updating to the latest version of watir 1.5.1.1165 in
svn. Installation instructions are included on the FAQ site. I may end up
making a gem from the current source today. It's been a while and there have
This is probably some code that needs to be yanked out and put in contrib. I
haven't used it and have yet to hear anyone else using it although I'm sure
there are some. You might take a look at Aslak Hellesoy's screenshot
library.
Koteswara Annavarapu wrote:
So , if I need to use WATIR module from the cygwin environment ,
please let me know wat I need to do of the below
1) change the environement variables in cygwin , for using the same
ruby installed in windows
2) let me know , if we can install the watir gem in
Daniel Kurtz wrote:
Thanks, I'll give it a try. Although I haven't had luck so far with things
like div().links. We'll see how it goes.
Use Watir 1.5.
___
Wtr-general mailing list
Wtr-general@rubyforge.org
How to click this link.follwoig is code
TABLE style=CURSOR: hand onclick=OnMeetingSubmit('Flush',1,0,1,2)
cellSpacing=0 cellPadding=0 border=0TBODY
TR
TDIMG height=1 src=/?=BrandName()?/images/1x1.gif width=5 border=0/TD
TDIMG src=/psota/images/lightblue_num2a.gif/TD
TD style=BORDER-RIGHT:
15 matches
Mail list logo