I fixed the problem in the xpath builder in both core and Trump. Please use core 0.7.0-snapshot and the new Trump 0.2.0 snapshot, which is at
http://kungfuters.org/nexus/content/repositories/snapshots/tellurium/TrUMP/0.2.0-SNAPSHOT/TrUMP-0.2.0-20090825.232604-6.xpi Please let us know if you have any further problems. Thanks, Jian On Aug 21, 3:10 pm, John <[email protected]> wrote: > 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 -~----------~----~----~----~------~----~------~--~---
