Clicking web page tab

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

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

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