Please help me with this one. I'm confused. attached is my console output. I
just have two calls in my script:
1. $ie.images.each { |i| puts "\n#{i.src}" }
2. $ie.show_all_objects
I'm looking for this image: RBJ_DetailTab_Off.gif.
Here's my question. how come on my first call, this image does
At 08:51 PM 7/12/2005, Tuyet Cong-Ton-Nu wrote:
I think \A should match the beginning of a string but this doesn't seem to
work. Any ideas?
irb(main):009:0> ie.frame("customizeRemoteContent").select_list(:id,
"availableColumnsSelectBox").select(/\ASector/)
/^Sector/
___
I've also been intending to make this work:
ie.select_list(:name, 's').option(:value, 'v2').select
The work for this is half-done.
I would appreciate hearing whether users think this interface would be
desirable. (The old one would also be retained.)
Bret
At 09:09 PM 7/12/2005, Paul Roger
This only works with XP SP2.
At 02:31 PM 7/7/2005, Daniel Shchyokin wrote:
In my script I am calling the IE.captureEvents followed by clicking
a link that opens a new window.
I then set another variable to IE.newWindow... x=IE.newWindow().
but when I try to call a method for x, say x.close().
If you already have an IE window open, the new ones will be like it. If
it's minimized, then so will they. If not, they won't.
Bret
At 06:13 PM 7/12/2005, Chris Morris wrote:
Tuyet Cong-Ton-Nu wrote:
Thanks, Chris. I also found the F11 (Full Screen) option, but what I
don't understand is wh
Jan,
First use
ie.show_images()
if that image is present and if there are two or more
images with the same name sometimes it doesnt works.
So findout if there are more images with the same
name. If not try to use the regular expressions.
ie.image(:name, /.*imgTest.*/).click
And if you have two
Armin,
Your approch is correct for this issue. However u
have to just modify few stuffs right here. Watir is
creating a new thread for the modular window, but the
old thread is not getting terminated. Thats the
reason why ur finding these problems. Now the work
around is that create a new thre
Title: Message
there
is a select_value method, although it is poorly documented. You would use it
like this:
html:
Option1Option2
ruby
ie.select_list(:name, 's').select_value('v2')
We
should add improvements to these docs to our todo list for this next
release
Paul
-Ori
I'm writing this off the top of my head so the syntax might be a bit off...
options = select_list(:id, "availableColumnsSelectBox").getAllContents
index = options.index("Sector")
options.select(options[index])
That should work...although probably not the best way :)
Shao
On 7/12/05, Tuye
In this select box, there are 2
items that have the word Sector in it:
1) GICS Sector
2) Sector
I am trying to select the item "Sector",
but I keep getting "GICS Sector" because it appears before "Sector".
I think \A should match the
beginning of a string but this doesn't seem to
Tuyet Cong-Ton-Nu wrote:
Thanks, Chris. I also found the F11 (Full Screen) option, but what I don't understand is why any "create test instance" of IE always brings up IE in a minimized mode!
For example: ie = Watir::IE.new or ie.goto("https://test.site.com";)
What's causing it to do that??
Try
ie.selectBox( :id, 'availableColumnsSelectBox' ).select(
/AUSTRALIAN/ )
Zeljko
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Tuyet
Cong-Ton-NuSent: Tuesday, July 12, 2005 11:14 PMTo:
'wtr-general@rubyforge.org'Subject: [Wtr-general] Select using
Value
I want to
Tuyet Cong-Ton-Nu wrote:
I
don't know why when I use the goto to launch my
application, it always
comes
up not fully maximized.
However,
when I do launch it from clicking on the IE icon on
my desktop
and
typing in the url, the window is fully maximized. I
am Puzzled??
Is
I want to use the value rather than
the text since the text has spaces in it, but I don't know if doing
select by value is supported since I got an error:
irb(main):017:0>
ie.frame("customizeRemoteContent").select_list(:id, "availableColumnsSelectBox").select("|SYSTEM|AUSTRALIAN").fire_eve
exists? does not work for frames.
In this case, you can just do:
assert(ie.frame("main"))
At 06:45 PM 7/11/2005, Tuyet Cong-Ton-Nu wrote:
in irb mode as well as within the script, I got this error when trying to
test for exists? for a frame:
error result from irb mode:
irb(main):009:0
Dear all,
I have to automatically monitor a "buggy" webapplication,
which requires an initial pop-up window authorisation to be
filled out.
My problem is that it works fine for a test application, but
for my buggy application the script passes the authorisation,
but the WindowHelper-Thread (a)
What do you mean by "can't i get this one work"? Nothing happens?
Try ie.image(:name,"imgTest").flash to flash image.
What do you want to do?
Do you want to fire javascript event (fire_event(event) should help ) or is
this image a submit button?
If image is button this should list it:
ie.butto
HI! Why can't i get this one work.
$ie.image(:name,"imgTest").click
is there anything wrong with this one?
i also tried src, id. but still no luck.
I know that this object is existing because I tried show_all_objects and this
image is listed. Thanks
Jan M. Montano
Lead QA / Developer
Regio
18 matches
Mail list logo