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

[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-ide/
 content/selenium/scripts/htmlutils.js:60 @:0 , name -> TypeError 

Not sure if this is a bug of  qooxdooExtension or selenium. 

Thanks a lot, Thomas. I'd keep trying...

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.

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