It's several layers down. Are you saying to use a parent element that's visible to access it? What would the syntax look like on that? Say the parent element is another div with an id of wide_right_1 for example.
On Thu, Oct 7, 2010 at 12:00 AM, Rajiv Nanduani < [email protected]> wrote: > use first parent element of the div like it could be form /table then find > ur div element :) > > On Wed, Oct 6, 2010 at 1:13 PM, CJ <[email protected]> wrote: > >> 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§ion=_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. >> >> [email protected] >> http://groups.google.com/group/watir-general >> [email protected]<http://groups.google.com/group/watir-general%[email protected]> >> > > > > -- > RAJIV KUMAR > > <http://rajivkumarnandvani.wordpress.com/> > <http://learnqtphelp.blogspot.com/> > > > -- > Before posting, please read http://watir.com/support. In short: search > before you ask, be nice. > > [email protected] > http://groups.google.com/group/watir-general > [email protected]<watir-general%[email protected]> > -- CJ Romberger Wildwood Interactive http://www.wildwoodinteractive.com/ 512.732.9916 PLEASE NOTE: I only check this email address about once a day! If you're a client, the fastest way to reach me is to login to Basecamp, OR email [email protected]. If you're NOT a client? Why not become one!? :) -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. [email protected] http://groups.google.com/group/watir-general [email protected]
