[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

clicking web page tab

newyorkdolluk

9/21/2006 11:34:00 AM

i have a tab on a web page that i want watir/ruby to click.

the DOM has it down as:

<HTML>
...
...
<Frame Id=topMenu>
<FORM id =Form1>
<TABLE class=tblbg>
<TD id=tabWrap>
<DIV class=admin id=header>
<LI id=nav-plan>

can anyone suggest a ruby/watir command to simulate the click

cheers

2 Answers

(Alex Furman)

9/22/2006 1:37:00 PM

0

You can try SWExplorerAutomation (SWEA) from
http:\\webunittesting.com. With SWEA you don't need to dig into the
DOM structure. SWEA is .Net API, but you can call it from RUBY.NET

newyorkdolluk wrote:
> i have a tab on a web page that i want watir/ruby to click.
>
> the DOM has it down as:
>
> <HTML>
> ...
> ...
> <Frame Id=topMenu>
> <FORM id =Form1>
> <TABLE class=tblbg>
> <TD id=tabWrap>
> <DIV class=admin id=header>
> <LI id=nav-plan>
>
> can anyone suggest a ruby/watir command to simulate the click
>
> cheers

bpettichord

9/26/2006 8:44:00 AM

0


newyorkdolluk wrote:
> i have a tab on a web page that i want watir/ruby to click.
>
> the DOM has it down as:
>
> <HTML>
> ...
> ...
> <Frame Id=topMenu>
> <FORM id =Form1>
> <TABLE class=tblbg>
> <TD id=tabWrap>
> <DIV class=admin id=header>
> <LI id=nav-plan>
>
> can anyone suggest a ruby/watir command to simulate the click

ie.frame(:id, 'topMenu').div(:id, 'header').click

Watir requires you to specify frames. Other elements are optional,
except to avoid ambiguity.

Bret