Found the problem, the value attribute is actually " New ", not "New". Seems core xpath builder trimmed out the extra space. Please unselect the value attribute, then it should work for you. I will fire an issue for this and fix it.
Thanks, Jian On Jul 22, 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&retURL= > %2F001%2Fo&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 -~----------~----~----~----~------~----~------~--~---
