you should also do a

ie.show_all_objects
ie.show_frames

If your control is located within a frame (or a nested frame) this can help
out dramatically!  I've spent hours trying to access a control to find out
it's in a frame!

On Tue, Jul 20, 2010 at 1:55 PM, Tiffany Fodor <[email protected]> wrote:

> Hmm...
>
> Is it possible your link is actually a span?
>
>
> ie.span(:id,"navigationTree:systemTargetProvisioningTypeCommand").click
>
> Have you tried these commands in irb?  Do you get any error messages?
>
> -Tiffany
>
> On Jul 20, 2:50 pm, roland panganiban <[email protected]>
> wrote:
> > Thank you for the responsed, yes already tried the fire_event command and
> > still the page can't be loaded.
> > Roland
> >
> > On Tue, Jul 20, 2010 at 4:44 PM, Tiffany Fodor <[email protected]>
> wrote:
> > > Hi!
> >
> > > Have you tried firing the javascript event associated with the link?
> >
> > >
> ie.link(:id,"navigationTree:systemTargetProvisioningTypeCommand").fire_event('onclick')
> >
> > > I'd give this and your link click command a shot in irb to see if it
> > > works.
> >
> > > Hope this helps!
> >
> > > -Tiffany
> >
> > > On Jul 20, 1:57 pm, lance <[email protected]> wrote:
> > > > Hi, newbie to watir and have question regarding on clicking the link
> > > > but page doesn't updated. During the execution I saw highlighted
> > > > yellow to the title link but the page did not changed.  Saw same
> > > > problem on the thread but does not really fixed the problem. Below is
> > > > the command and the source code.
> > > > Please advise what I am missing.Thanks.
> > > > Code:
> > > > Watir::Waiter::wait_until
> >
> > >
> {ie.button(:id,"navigationTree:systemTargetProvisioningTypeCommand").exists?}
> >
> > > >
> ie.link(:id,"navigationTree:systemTargetProvisioningTypeCommand").click
> >
> > > > Source:
> > > > <div id="navigationTree:n0:n3:n0:n1:branch" style="display:block;"></
> > > > div></td></tr></table><table id="navigationTree:n0:n3:n0:n2"
> > > > class="acuTreeNode"><tr><td
> background="/smarttap/javax.faces.resource/
> > > > images/ice/tree_line_blank.gif.jsf;"><div
> class="acuTreeLine"></div></
> > > > td><td class="acuTreeNodeContent"><span
> >
> > >
> onclick="acu.jsf.tree.setExpandedState('navigationTree:n0:n3:n0:n2','navigationTree:n0:n3:n0:n2:branch');acu.jsf.tree.setNavImage('navigationTree:n0:n3:n0:n2:nav','navigationTree:n0:n3:n0:n2:branch','/
> > > > smarttap/javax.faces.resource/images/ice/tree_line_bottom.gif.jsf','/
> > > > smarttap/javax.faces.resource/images/ice/
> >
> > >
> tree_line_bottom.gif.jsf');acu.jsf.tree.setIconImage('navigationTree:n0:n3:n0:n2:icon','navigationTree:n0:n3:n0:n2:branch','/
> > > > smarttap/javax.faces.resource/images/ice/tree_document.gif.jsf','/
> > > > smarttap/javax.faces.resource/images/ice/
> > > > tree_document.gif.jsf');"><img id="navigationTree:n0:n3:n0:n2:nav"
> > > > src="/smarttap/javax.faces.resource/images/ice/
> > > > tree_line_bottom.gif.jsf" alt="" class="acuTreeIcon" /><img
> > > > id="navigationTree:n0:n3:n0:n2:icon" src="/smarttap/
> > > > javax.faces.resource/images/ice/tree_document.gif.jsf" alt=""
> > > > class="acuTreeIcon" /></span><span
> > > > id="navigationTree:n0:n3:n0:n2:content"
> >
> > >
> onmousedown="acu.jsf.tree.setSelectedNode('navigationTree:n0:n3:n0:n2','navigationTree:selectedNode');"
> >
> > >
> onkeydown="acu.jsf.tree.setSelectedNode('navigationTree:n0:n3:n0:n2','navigationTree:selectedNode');"
> > > > class="acuTreeNodeContent"><a
> > > > id="navigationTree:systemTargetProvisioningTypeCommand" href="#"
> > > > title="Target Provisioning"
> > > > onclick="mojarra.jsfcljs(document.getElementById('leftMenuForm'),
> >
> > >
> {'navigationTree:systemTargetProvisioningTypeCommand':'navigationTree:systemTargetProvisioningTypeCommand'},'');return
> > > > false" class="leftMenuLink">Target Provisioning</a></span>
> >
> > > --
> > > Before posting, please readhttp://watir.com/support. In short: search
> > > before you ask, be nice.
> >
> > > You received this message because you are subscribed to
> > >http://groups.google.com/group/watir-general
> > > To post: [email protected]
> > > To unsubscribe: 
> > > [email protected]<watir-general%[email protected]>
> <watir-general%[email protected]<watir-general%[email protected]>
> >
>
> --
> Before posting, please read http://watir.com/support. In short: search
> before you ask, be nice.
>
> You received this message because you are subscribed to
> http://groups.google.com/group/watir-general
> To post: [email protected]
> To unsubscribe: 
> [email protected]<watir-general%[email protected]>
>

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

You received this message because you are subscribed to 
http://groups.google.com/group/watir-general
To post: [email protected]
To unsubscribe: [email protected]

Reply via email to