Hi Jian,

Thanks for the reply. Based on your response I decided to just hand
write a module after which this button was able to be located.  I
would post more html for reference, but I'm not sure my organization
would be ok with that.

Thanks,
Paul

On Jul 22, 3:09 pm, Jian Fang <[email protected]> wrote:
> "returned 0 nodes, failed validation" means the locator is not unique to
> locate the element.
>
> Seems the button cannot be located by itself, you have to include more
> elements
> in your UI module, also try to use the group locating feature. Do you mind
> providing
> us more HTML source including its parents and siblings. We can try to test
> that
> using the mock http server.
>
> Thanks,
>
> Jian
>
> On Wed, Jul 22, 2009 at 5:30 PM, Paul <[email protected]> wrote:
>
> > Hey all,
>
> > I have been trying to create some modules on an internal website at my
> > organization and when attempting to generate the code for a particular
> > button I seem to continually get the following log message in TrUMP:
>
> > [warn] The XPath for Node input0 //descendant-or-self::input
> > [...@type="button" and @title="New" and @name="new" and @class="btn" and
> > @value="New"] returned 0 nodes, failed validation
>
> > the code that TrUMP generates for the button is the following:
>
> > InputBox(uid: "input0", clocator: [tag: "input", type: "button",
> > title: "New", name: "new", class: "btn", value: " New "], respond:
> > ["click"])
>
> > I have tried including all the button attributes, clicking on other
> > elements on the page that are spatially close to the button and
> > manually writing the module to include the encapsulating form, but it
> > seems like whatever I do this button cannot be found at runtime.
>
> > I'm not sure if the following is helpful but here is the HTML for the
> > actual button I am trying to generate the module for:
>
> > <input type="button" title="New" onclick="navigateToUrl('/setup/ui/
> > recordtypeselect.jsp?ent=Account&amp;retURL=
> > %2F001%2Fo&amp;save_new_url=%2F001%2Fe%3FretURL%3D%252F001%252Fo');"
> > name="new" class="btn" value=" New "/>
>
> > If anyone has any tips on how to resolve this issue I would appreciate
> > it.
>
> > Thanks,
> > Paul
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"tellurium-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/tellurium-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to