I have a page whose submit button uses ajax to create a record in a
database, and then modify the form to make clickable div elements.
When you click on the div element, it opens a new window.

Those div elements are visible using Chrome or Firefox and choosing
Inspect Element, but they are NOT available if I use watir to
show_all_objects.

I need to access those elements and then click on them.

The code that's visible in Inspect Element through Firefox Firebug or
Chrome looks like this:

<div id="ta_1" class="dot" onclick="window.open('innova_editor.php?
page-index&section=_1.tpl&ta=ta_1', 'innova_editor',
'menubar=yes,scrollbars=yes,resizable=yes,height=700,width=950',true);">

I did an if test to see if it exists using this:

if b.div(:id, "ta_1").exists?

It says it doesn't.

I tried firing an event anyway, using this:
b.div(:id, "ta_1").fire_event("onClick")

Says it doesn't exist.

Is this possible to do?

I'm stuck.  :(

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com

Reply via email to