Hi there,

I'm new to Ruby and Watir, but not to programming or HTML. At the
place I work, we're looking for something to do our testing with. I'd
like to use Watir because it's open, and I've been wanting to learn
Ruby for a while. If I can show that Watir will do the job for us, I
think the project manager might accept it.

The app has a nested frameset with a javascript driven menu in the
bottom left frame. I am able to select my desired menu item, but I
can't seem to click it, or trigger the javascript correctly.

The web page:
-----------------
       1
-----------------
  2   |   3
       |

1 = PanelTop
2 = PanelLeft
3 = PanelRight

The menu is in PanelLeft and looks something like this:

+ Groups & Users
+ Authorities
 |----Authorities Configuration
+ Reports

ie. Authorities Configuration is a sub-menu item of Authorities. I
need to click on Authorities, then click on Authorities Configuration

This is the HTML arround the Authorities menu item.

<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class=ob_t6 style="background-image:
url('images/TreeIcons/Styles/win2003L/vertical.gif');">
<img alt="" src="images/TreeIcons/Styles/win2003L/plusik.gif"
onclick="ob_t21(this, '')">
</td>
<td class=ob_t4>
<div class=ob_d4>
<img alt="" src="images/TreeIcons/Icons/xpAdmin.gif">
</div>
</td>
<td id=id_certificateauthorities_root onclick='ob_t22(this)' class=ob_t2>
<span onclick='ob_t23(this)' style='cursor: pointer;'>
Authorities   <------AUTHORITIES TEXT
</span>
</td>
</tr>
</table>

My line of code to try to access it is currently
ie.frame("PanelLeft").cell(:id,
"id_certificateauthorities_root").fireEvent("onClick")

This highlights the Authorities text on the page, but it doesn't open
the menu. Perhaps I need to also FireEvent the following span's
onclick as well?

Any help is appreciated.

Thank you,
--
Michael Moore
-------------------------------
www.stuporglue.org -- Donate your used computer to a student that needs it.
www.ubuntu-utah.org -- In Utah? Interested in Ubuntu? Come join us.

_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to