I’m using the Slenium IDE in Firefox to automate some UI tests and I am also using the DHTMLX components.
Now my problem is to to open the context menu of a row of an grid element. I tried to use the “mouseDownRight” and “mouseUpRight” events, tried to set the mouse over the element (“mouseOver”) and also tried to “clickAndWait” after a “mouseDownRight”.
The oddity is that when I click the element with the mouse and then execute a “moseRightDown” the context menu will be opened (unfortunately in the top left corner of my web application).
If you have a a solution for this problem I would be glad to her it
Thank you, Wiggle
I’m not allowed to post any code in a Forum, sorry. My company has rules not to publish code, it’s all secret…
I thought the solution is as easy as the problem to click a DHTMLX button (“mouseOver”, “mouseDown”, “clickAndWait”).
If there in not such an easy solution I think it would be too complicated to use this testcase in “real life”
But if there IS an easy solution please let me know.
Maybe you could tell me which code you need?
My code works perfectly, I can open every context menu, I can click the lines and so on…
The only problem is to open the context menu out of Selenium IDE.
I can do every action with Selenium IDE except of do a right click and open the context menu.
I think you overlooked that I am working with the Selenium IDE because the code how I generated the grid and the context menu would not help I think
What I do in Firefox:
right cklick on the row -> context menu opens
What I do in Selenium:
mouseOver row
mouseDown on row
click on row
mouseUp from row
mouseOut from row
mouseOver row
mouseDownRight on row -> context menu does not open
But:
click on row with mouse (in Firefox directly)
mouseDownRight on row -> context menu opens
I found a solution for my problem. If someone else has the same problem:
First you have to “mouseMove” the mouse to the element where to open the DHTMLX context menu (“mouseOver” does NOT work!).
Then you can do a “mouseDownRight” and the context menu should open (only problem: it opens at the coordinates 0 / 0 -> top left corner, but that is okay for my test case).
Thank you for your help so far
Get a guaranteed answer from DHTMLX technical support team
under the most suitable support plan