Hi. 
The application I use to record my tests with Selenium IDE has a table with
3 columns. To block the user to move the columns from their initial position
a static class (StaticScroller) was used instead of
qx.ui.table.pane.Scroller and now I have a problem when I try to click on
the table. The following is the function from user-extension.js (the
extension for qooxdoo applications) used to find the table's clipper: 

Selenium.prototype.__getTableClipperElement = function(locator, qxTable) 
{ 
  // Now add the extra components to the locator to find the clipper itself. 
  // This is the real object that we want to click on. 
  var element = null; 
  var subLocator =
"qx.ui.container.Composite/qx.ui.table.pane.Scroller/qx.ui.table.pane.Clipper";
  if (locator.indexOf("qxh=") == 0) { 
    var innerLocator = locator + "/" + subLocator; 
    // Now add the extra components to the locator to find the clipper
itself. 
    // This is the real object that we want to click on. 
    element = this.page().findElement(innerLocator);       
  } 
  else { 
    var qxhParts = subLocator.split('/'); 
    try { 
      var qxResultObject = this.page()._searchQxObjectByQxHierarchy(qxTable,
qxhParts); 
    } catch(ex) { 
      throw new SeleniumError("Couldn't find table clipper widget: " + ex); 
    } 
    element = qxResultObject.getContentElement().getDomElement(); 
  } 
  return element; 
}; 

My path to the clipper is now different: var subLocator =
"qx.ui.container.Composite/StaticScroller/qx.ui.table.pane.Clipper";
I updated the user-extension with this path, but Selenium still can't find
the table's clipper. 

What can I do to solve my problem? 
Thank you in advance, 
Loredana
-- 
View this message in context: 
http://old.nabble.com/Question-regarding-user-extensions-qooxdoo.js-tp29903353p29903353.html
Sent from the qooxdoo-devel mailing list archive at Nabble.com.


------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to