Hi Everybody...
Here's The Sample html Code...
img src=/images/icons/pdf_small.gif Company A
etc... etc.
img src=/images/icons/pdf_small.gif Company B
etc... etc...
img src=/images/icons/pdf_small.gif Company C
Now If I Write[i] ie.image(:src, /pdf_small/i).click [/i]. It Clicks On The
On 5/16/07, Jeff Fry [EMAIL PROTECTED] wrote:
Any input from folks who either use or have tried unsuccessfully to use
these two?
I have tried to use it, but it did not work for me. As far as I am
concerned, it can be removed.
Zeljko
--
ZeljkoFilipin.com
Hi San,
Try this:
ie.image(:src = /pdf_small/i, :index = 1).click
ie.image(:src = /pdf_small/i, :index = 2).click
...
I guess that you know how to create a loop. If not, see
http://www.rubycentral.com/book/tut_expressions.html
There is section called Loops.
Zeljko
--
ZeljkoFilipin.com
Thanks zeljko...
Let Me Try It...
for $i in 1 .. 3
ie.image(:src = /pdf_small/i, :index = #{$i}).click
sleep 10
etc.. etc...
ie.back
end
Will Let You Know If It Works Or Not...
Hopefully It Will :)
___
Wtr-general mailing list
On 5/17/07, san [EMAIL PROTECTED] wrote:
for $i in 1 .. 3
ie.image(:src = /pdf_small/i, :index = #{$i}).click
sleep 10
etc.. etc...
ie.back
end
There is no need for global variable in
for $i in 1 .. 3
I suggest that you change it to
for i in 1 .. 3
Also, :index expects integer,
Thanks For The Info zeljko...
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
Željko Filipin wrote:
On 5/16/07, *Jeff Fry* [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED] wrote:
Any input from folks who either use or have tried unsuccessfully
to use these two?
I have tried to use it, but it did not work for me. As far as I am
concerned, it can be removed.
Does nobody understand why:
$ie.span(:text, title).exists?
returns true...
But wrapping in assert statement around the same statement then fails?
assert($ie.span(:text, title).exists?)
...or was my question so simple nobody felt like addressing it?? I would really
appreciate some
...or was my question so simple nobody felt like addressing it?? I would
really appreciate some guidance. I have a script with 66 test cases that I
was wanting to test this way...but it's apparently not giving me the correct
test results??
Again, if you have any ideas...please reply.
I
On 17/05/07, Lauren [EMAIL PROTECTED] wrote:
Does nobody understand why:
$ie.span(:text, title).exists?
returns true...
But wrapping in assert statement around the same statement then fails?
assert($ie.span(:text, title).exists?)
Looks OK. Could you send us the test HTML page?
aidy
WinExists returns either a 1 or a 0, both are true in ruby. You can use
assert_equal instead:
assert_equal(1, autoit.WinExists(test.txt - Notepad))
-Charley
On 5/15/07, Kui Zhang [EMAIL PROTECTED] wrote:
Hello,
I have a question for the test case below. When the Notepad window is not
open,
Thanks aidy and cmcmahon,
Here is a snippet of the source of the page I'm testing with the 'title',
'first name' and 'last name' text labels I want to verify located in a span.
Can I use ie.span(:text, xx).exists? in this case??
tr
td width=95 align=leftspan
tr
td width=95 align=leftspan class=formTexttitlebr /
/span/td
td width=96 align=leftspan class=formTextfirst name
/span/td
td width=206 align=leftspan class=formTextlast name
/span/td
/tr
___
On May 16, 2007, at 11:43 PM, Bret Pettichord wrote:
3. Have the parent process spin, waiting for that file to be created,
then continue.
I wonder whether this is really what is happening. My guess is that it
is blocked...
[...]
I don't think you actually need to have the file polling
Brian Marick wrote:
I'll check it out. The only advantage over using popen is that you
don't have to have an executable ruby file (and know where to find
it). You can just require a watcher file and do the work without any
implicit or explicit exec.
I seem to remember seeing a
I am getting the following error:
c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1336:in `method_missing': document (WIN3
2OLERuntimeError)
OLE error code:80004005 in Unknown
No Description
HRESULT error code:0x80020009
Exception occurred. from
which version of watir are you using?
I there a page refresh when the select box is selected?
Paul
- Original Message -
From: Ken [EMAIL PROTECTED]
To: wtr-general@rubyforge.org
Sent: Thursday, May 17, 2007 1:24 PM
Subject: [Wtr-general] Error message with a dropdown
I am getting the
Thanks, that did the trick once I got around the newb mistake of not having
require 'test/unit/assertions'
include Test::Unit::Assertions
Now I just have to figure out how to put the results in an excel spreadsheet
the same way I do with the results from an If/Else.
Thanks Again!
I just downloaded Watir a week ago so I assume its the latest and greatest.
No, there is no refresh when the box is selected.
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
Okay,
so I've just seen this posting from Bret on the following thread
(http://www.mail-archive.com/wtr-general%40rubyforge.org/msg08637.html) which
seems to clarify things a bit although it still raises some questions for a
non-HTML expert still getting used to Ruby, WATIR and the ins and
Ken wrote:
I just downloaded Watir a week ago so I assume its the latest and greatest.
No, there is no refresh when the box is selected.
You are using 1.4.1. You can find more recent versions here:
http://wiki.openqa.org/display/WTR/Development+Builds
Okay...
Here's a specific example of when the code is true outside of the assert, but
when wrapped in an assert it returns false. Wouldn't - assert(true) return
true? Trying to be more specific... Could it be the set up of my testcase
using test/unit??
Don't you just love all those betas? There is another one! New Watir User
Guide (beta). Check it out and let me know what you think about it. It is
just a first draft. Please, be polite. It is just a few minutes old.
Zeljko
--
ZeljkoFilipin.com
___
Can you tell that it is past 1 am here? I forgot the link. Here it is.
http://wiki.openqa.org/display/WTR/New+Watir+User+Guide+%28beta%29
You can also find a link to it at Watir wiki home page (
http://wiki.openqa.org/display/WTR/Project+Home) under Learning Watir
headline.
On 5/17/07, Željko Filipin [EMAIL PROTECTED] wrote:
Can you tell that it is past 1 am here? I forgot the link. Here it is.
http://wiki.openqa.org/display/WTR/New+Watir+User+Guide+%28beta%29
Clearly this is going to be iterative :)
If it were me, I would have done
require 'watir'
include
25 matches
Mail list logo