Watir general question

B

Brad Symons

hi everyone

it was really difficult to find a watir forum at all, so i hope i can
find some help in here anyway.

is there a way of veryfying that an IE spawned browser window exists?

from what i can gather on the watir and ruby pages, they only cater for
dialogs.

basically on logging into my app, it then spawns a second ie instance,
this can be attached to by using the following:

$ie = Watir::IE.attach:)title, 'System Navigator')

but is there a way i can check whether this exists before i attach to
it?

any help would be very much required?

i was thinking along the lines of

$ie.window:)title, 'System Navigator').exists -> but obviously there is
no window control.

thanks in advance.
 
B

Bret Pettichord

$ie =Watir::IE.attach:)title, 'System Navigator')

but is there a way i can check whether this exists before i attach to
it?

$ie = Watir:IE.find:)title, 'System Navigator')

it will be nil if there is no such window.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,774
Messages
2,569,598
Members
45,145
Latest member
web3PRAgeency
Top