There might be some potential problem when the algorithm tries to select a new node other than what user has selected in the following method:
NodeObject.prototype.findSelectedNode I hope I can find the root cause, if not, I will replace it with a new algorithm I am working on. Thanks for your feedback on Trump, Jian On Fri, Jul 16, 2010 at 11:39 AM, Jade <[email protected]> wrote: > Hi again, > > I had tried this earlier, but now it works. I first click on the form > body and then I click on the checkbox and now it generated the code: > > Container(uid: "Dsbody", clocator: [tag: "div", id: "ds-body"]){ > CheckBox(uid: "DOCUMENT_TITLE", clocator: [tag: "input", type: > "checkbox", value: "DOCUMENT_TITLE", name: > "HIST_COLUMN_DOCUMENT_TITLE"]) > } > > I closed the Trump IDE and reopened it, then the code generates > without problems (as long as the form that includes the checkboxes is > highlighted first). > > Jade > > On Jul 16, 10:29 am, Jade <[email protected]> wrote: > > I expanded my Trump IDE so now I see the log: > > > > * [error] Cannot find the node for tag div > > * [error] Error generating UI Module: message: this.domNode is > > null, name: TypeError, filename: > chrome://trump/content/uicreator/node.js, > > linenumber: 439. JavaScript Error Stack: {anonymous}()@chrome://trump/ > > content/uicreator/node.js:470 {anonymous}()@chrome://trump/content/ > > uicreator/node.js:484 {anonymous}()@chrome://trump/content/uicreator/ > > tree.js:54 {anonymous}()@chrome://trump/content/editor.js:333 > > {anonymous}()@chrome://trump/content/editor.js:343 oncommand([object > > XULCommandEvent])@chrome://trump/content/trump-ide.xul:1 > > > > Jade > > > > On Jul 16, 10:24 am, Jade <[email protected]> wrote: > > > > > Hi Jian, > > > > > Thanks again for your quick reply. I tried Trump-0.8.0-pre5.xpi > > > > > However, even though I have Javascript logging on in the options, I > > > can't find the log and the text of the UI Module is completely empty. > > > In fact there's no error message either. > > > > > I have two items in my Record Stack: > > > a > > > input add-avail-college > > > > > but nothing appears when I click Generate. > > > > > My work site isn't publicly available but I just tried this on another > > > site that uses jquery and ajax, and nothing displays when I click on > > > Generate. To reproduce this, you can navigate to: > > > > >http://edufone.com/podcasts.php?lang=en > > > > > then start recording in Trump and click on links (such as download) > > > and parts of the form. Then click on Generate and there won't be any > > > code in the UI Module. > > > > > Jade > > > > > On Jul 16, 10:02 am, Jian Fang <[email protected]> wrote: > > > > > > Please try trump-0.8.0-pre5.xpi, which will dump out the Javascript > error > > > > stack. Please post the error stack here. > > > > > > Thanks, > > > > > > Jian > > > > > > On Fri, Jul 16, 2010 at 11:00 AM, Jade <[email protected]> wrote: > > > > > I haven't had problems generating code from the part of our website > > > > > that doesn't have ajax. However, when I try to generate code via > Trump > > > > > from the part of the website that uses ajax, I get this error: " > > > > > Cannot find the node for tag form" in Trump. > > > > > > > Part of the HTML is: > > > > > > > <form id="aspect_vireo_admin_Settings_div_form-prefs" class="ds- > > > > > interactive-div form-prefs" action="/vireo101/vireo/admin/settings? > > > > > update=true&page=" method="post" > > > > > onsubmit="javascript:tSubmit(this);"> > > > > > <div id="aspect_vireo_admin_Settings_div_list-tab-options" > class="ds- > > > > > static-div settings-options"> > > > > > <h3 style="font-size: 120%;" class="ds-div-head">List Tab > Options</h3> > > > > > <fieldset id="aspect_vireo_admin_Settings_list_display-filters-one" > > > > > class="ds-form-list thick display-filters-one pref-options > > > > > asyncParent"> > > > > > <legend>What filter options should appear?</legend> > > > > > <ol> > > > > > <li class="ds-form-item odd"> > > > > > <div class="ds-form-content"> > > > > > <fieldset id="N100E3" class="ds-checkbox-field settings_onclick"> > > > > > <label> > > > > > > > <input name="LIST_ASSIGNED_TO" type="checkbox" value="ASSIGNED_TO" > > > > > checked="checked" />Assigned To</label> > > > > > </fieldset> > > > > > </div> > > > > > </li> > > > > > <li class="ds-form-item even"> > > > > > <div class="ds-form-content"> > > > > > <fieldset id="N100F0" class="ds-checkbox-field settings_onclick"> > > > > > <label> > > > > > <input name="LIST_DATE_DRILL_DOWN" type="checkbox" > > > > > value="DATE_DRILL_DOWN" checked="checked" />Submission Date > (Choose)</ > > > > > label> > > > > > </fieldset> > > > > > </div> > > > > > </li> > > > > > > > The forms use lots of jquery and ajax. I didn't have any problems > > > > > generating code for them in the Selenium IDE. > > > > > > > I've tried these versions of the trump Firefox plugin: > > > > > > > trump-0.8.0-20100716.024202-42.xpi > > > > > Trump-0.8.0-pre5.xpi > > > > > trump-0.8.0-pre3.xpi > > > > > > > and all of them give me the same error message when I click on the > > > > > generate button. > > > > > > > Jade > > > > > > > -- > > > > > 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]<tellurium-users%[email protected]> > <tellurium-users%[email protected]<tellurium-users%[email protected]> > > > > > > > . > > > > > For more options, visit this group at > > > > >http://groups.google.com/group/tellurium-users?hl=en. > > -- > 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]<tellurium-users%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/tellurium-users?hl=en. > > -- 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.
