Hi Loredana,

the problem is with your locator's syntax: Only steps starting with 
"qx." will be treated as class names. The step "StaticScroller" will be 
interpreted as a general identifier, meaning the user extensions will 
search the result of the previous step for a member named 
"StaticScroller". To search using a non-qooxdoo class name, use this syntax:

[...@classname="StaticScroller"]


Regards,
Daniel

lore6dana schrieb:
> 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

------------------------------------------------------------------------------
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