Daniel Wagner wrote:
> Hi Olivier,
>
> "qxh="... is the prefix for the locator string, so it should look 
> something like this:
>
> qxClick("qxh=*/[...@foo=bar]/baz/*/child[1]")
>
> The "@" locator step works with properties (qooxdoo or regular 
> javascript), but not with the DOM "id" attribute. It's also 
> case-sensitive for both the property name and the value.
>
> The Simulator documentation[1] describes the different strategies you 
> can use to locate widgets. Generally, attaching a property (e.g. 
> "seleniumId") with an identifier string and then using the qxh locator 
> is a quick and simple way to do it, so it looks like you're on the 
> right track.
>
> Also, it's a good idea to test your locators in Selenium IDE[2]. 
> Setting the log level to "Debug" will usually give you a good idea of 
> why a particular step isn't working.
>
> Don't hesitate to ask if you've got more questions.
>
>
> Regards,
> Daniel
>
> [1]http://qooxdoo.org/contrib/project/simulator/selenium-user-extension#qxh_locator_tutorial
>  
>
> [2]http://qooxdoo.org/contrib/project/simulator#installing_in_selenium_ide 
>
>
> Olivier ZORO-BI schrieb:
>> Hi,
>>
>> I want to access with Selenium, the children of a listItem which is 
>> in a tabviewPage in a tabview, in a window which is in a main container.
>> I have some ids for each but when I try to access the items, my test 
>> fails.
>>
>> It looks like : 
>> selenium.qxClick("*/[q...@id=table]/*/[...@id=tabview]/*/[Id=Tabviewpage]/*/[...@id=listitem]/child[1]");
>>  
>>
>>
>> Could somebody tells me if I'm wrong? And is there somewhere I can 
>> find a list of how to acces qooxdoo widgets?
>>
>> Thanks a lot.
>>
>> Olivier ZORO-BI
>>
>> ------------------------------------------------------------------------------
>>  
>>
>> Download Intel® Parallel Studio Eval
>> Try the new software tools for yourself. Speed compiling, find bugs
>> proactively, and fine-tune applications for parallel performance.
>> See why Intel Parallel Studio got high marks during beta.
>> http://p.sf.net/sfu/intel-sw-dev
>> _______________________________________________
>> qooxdoo-devel mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>>
>>
>
> Daniel,
Thanks for your answer and for the links. I now understand the different 
ways to locate a qooxdoo widget.

I found with the logs that the problem in my test is to click the second 
tabviewPage(the one witch is not default) .( I have a tabview with two 
pages)
I changed my code to:
 
selenium.qxClick("qx...@label=windowtitle]/[...@label=tabviewtitle]/[...@label=tabviewpagetitle]")
 
;
or 
selenium.qxClick("qx...@label=windowtitle]/*/[...@label=tabviewpagetitle]") ;

I have the choice of child locator that I tried but I don't really know 
the child number of the tabviewPage.

Tell me please If I made a mistake or if there is special qooxdoo 
properties for windows ans tabviews like @label (@window, @tabview....)

Thanks again.

Olivier.

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to