Contributions
Re: clicking on web elements with no ID
I have another element without an ID that I can't figure out how to access. I need to enter text in the textbox found in the following html: <table cellspacing="4" cellpadding="0"> <tbody> <tr> <td align="left" style="vertical-align: top;"> <div class="gwt-Label">Name:</div> </td> <td align="left" style="vertical-align: top;"> <input type="text" tabindex="0" class="gwt-TextBox"> </td> </tr> </tbody> </table> Thanks, Davina1.1KViews0likes0Commentsweb app element identified with ID attribute is found but not clicked
I have a web element in my app that has an ID attribute. In my script I call all.gwt_debug_add_report_component_button_MenuItem.Click(); but the following error: Type Message Time Link There was an attempt to perform an action at point (0, 0), which is out of the window bounds. 15:51:42 So TC is finding the web element, but not successfully clicking on it. Any suggestions on what might be causing this? HTML snippet: <td class="gwt-MenuItem ImageMenuItem-FF gwt-MenuItem-selected" id="gwt-debug-add-report-component-button-MenuItem" role="menuitem" aria-haspopup="true" title="Add Component to Report" style=""> <table class="MenuItem-InnerTable"> <tbody> <tr> <td> <div class="ImageMenuItem-Icon add-report-component-button"></div></td><td><div class="MenuItem-Text" style="display: none;"></div> </td> </tr> </tbody> </table> </td>11KViews0likes3Comments- 1.1KViews0likes0Comments
clicking on web elements with no ID
My AUT is a web app that has dynamically created pages. Therefore, with the exception of the static widgets that are always present, there's no way to assign static IDs to the elements on the page. I'm using the DOM tree model, and it's working great for those static widgets, but for dynamically created elements, I'm getting Type Message Time Link There was an attempt to perform an action at point (59, 8), which is out of the window bounds. 14:36:14 The line of the script being executed was recorded like this: all.Item(1038).Click(59, 8); I'm wondering if the problem is that the DOM traversal isn't deterministic, and Item(1038) isn't always the same on subsequent loadings. Is there a way for me to identify the element I want to select using xpath or this HTML? <div class="hyperlink report-link list-panel-row">My Link Text</div> Thanks, Davina11KViews0likes4Comments