>Chi Mo wrote:
>>>> Please look at http://demo.qooxdoo.org/current/showcase/#Tree , we've 
>>>> added a context menu on the items of tree, such as, if you right-click 
>>>> 'Files', you'd see a context menu with 'Open' and 'Search', then you can 
>>>> click 'Search' to open a new dialog. I'm wondering if we can use Selenium 
>>>> to test this action. The code of 'Files' is as below: 
>>>>
>>>> <div style="padding: 2px; position: absolute; -moz-user-select: none; 
>>>> cursor: default; white-space: nowrap; line-height: 100%; color: white; 
>>>> font-family: "Lucida Grande",Tahoma,Verdana,"Liberation Sans","Bitstream 
>>>> Vera Sans"; font-size: 11px; height: 15px; left: 54px; top: 1px; 
>>>> margin-left: 3px; background-color: rgb(51, 94, 168);">Files</div> 
>>>>
>>>>       
>>> Have you tried a qxClick with a second parameter button=right on the
>>> 'Files' entry? That should open the context menu. Then on with normal
>>> menu selection, i.e. qxClick on 'Search'.
>>>     
>>
>> Hmmm, my colleague(Hugh Gibson) has found that it seems that 'right-button 
>> mouse click' does not work well? Please see the note in 
>> http://qooxdoo.org/documentation/contrib/simulator/selenium-user-extension . 
>> I did try both 'qxClick' and 'contextMenuAt', there is no error in the log, 
>> but when I tried to click the item of the context menu, I got something like:
>>
>>   
>
>Well, 'contextMenuAt' is not in the latest stable release, AFAIK. It
>appears to be in the new 1.0 beta of Selenium. I have no experiences
>with it since all our work is based on the last stable (Core 0.8.3), so
>I cannot comment on it.

Aha, I see. So cannot wait to see the 1.0 stable release.


>
>> [info] Executing: |contextMenuAt | //*[text()="Files"] | |
>> # [info] Executing: |qxClick | //*[text()="Edit"] | |
>> # [error] Unexpected Exception: message -> element has no properties, 
>> fileName -> chrome://selenium-ide/content/selenium/scripts/htmlutils.js, 
>> lineNumber -> 249, stack -> 
>> triggerEvent(null,"focus",false)@chrome://selenium-ide/content/selenium/scripts/htmlutils.js:249
>>  
>> (null,"")@file:///C:/SDC/ToolSource/tools_source/AblingClient/WebServer/qooxdooExtension_0_3/user-extensions.js:276
>>  
>> ("//*[text()=\"Edit\"]","")@file:///C:/SDC/ToolSource/tools_source/AblingClient/WebServer/qooxdooExtension_0_3/user-extensions.js:246
>>  apply([object Object],[object Array])@:0 
>> ("//*[text()=\"Edit\"]","")@chrome://selenium-ide/content/selenium/scripts/htmlutils.js:60
>>  ([object Object],[object 
>> Object])@chrome://selenium-ide/content/selenium/scripts/selenium-commandhandlers.js:309
>>  
>> ()@chrome://selenium-ide/content/selenium/scripts/selenium-executionloop.js:112
>>  
>> (0)@chrome://selenium-ide/content/selenium/scripts/selenium-executionloop.js:78
>>  apply([object Object],[object Array])@:0 (0)@chrome://selenium-i
 de/
>>  content/selenium/scripts/htmlutils.js:60 @:0 , name -> TypeError 
>>
>> Not sure if this is a bug of  qooxdooExtension or selenium. 
>>   
>
>For one thing, if you are in an interactive session you should be able
>to enter the 'contextMenuAt' command and actually *see* the menu
>opening. Is this the case? Unless the menu opens there is no much sense
>in running click commands. You have to make sure the menu opens first.

Yes you're right. Actually I did not *see* the menu opening by using both 
'contextMenuAt' and 'qxClick'.


>Which qooxdooExtension are you running against? Is this the version
>Phaneesh uploaded to the Selenium Wiki page in January? We should try to
>synchronize on the qooxdoo-contrib 'Simulator' project version of the
>extension. It seems to me the best way would be to make right-button
>qxClick's work properly in all contexts, so if you can provide some sort
>of patch to that end, that would be great.

I'm using the one that uploaded by Robert Zimmermann  at Nov 15, 2007. The one 
that Phaneesh uploaded only works with core 0.8.0. Maybe I should try it.

>
>>
>> BTW, I'm sorry for posting the message repeatedly. That was a 'mistake' :(. 
>> I registered nabble, post the first one, but I was told that I should 
>> register to the nabble's mailinglist, which I never get response. So I had 
>> to post the message via qooxdoo. Anyway I'd try to delete one.
>>   
>Mh, I don't remember seeing duplicate messages ...?!

:), I managed to remove the other one.

Regards,
Chi


-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Register now and save $200. Hurry, offer ends at 11:59 p.m., 
Monday, April 7! Use priority code J8TLD2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to