Get help with testing, discuss unit testing strategies etc.


Post by satishkn »

Hi,

I am using an extjs grid in my application, and we have provided right click options (4 options) for the rows in the grid.
Using siesta, I am able to select the row and simulate t.rightclick(). The application shows the options properly. However, I would like to simulate selection of one of the options.

Would appreciate if anyone can suggest how I can achieve the same.
-satish

Post by mats »

So, on right click you show a menu and you want to click one of its options?

Post by satishkn »

Yes. Currently I am able to show all the options.

Post by mats »

Did you try clicking the menu options as components? Each menu option is in fact a component so you can just click them like you would any other Component.

Post by satishkn »

But how do I get the component details of menu options (right click) of a row ?
I can get the component of the grid as I have specified an itemid, but not for menu options.

A simple example would help me a lot.
Thanks,
-Satish

Post by mats »

Are you able to get a reference to the Menu component on right click?
t.waitForComponentVisible('menu', function(result) { })
result will be the result of the Component Query...

Post by satishkn »

Thanks for the suggestion.
I specified 'itemId' for the menu (action items) and using component query I was able to get a reference to the 'menu item' and then click the same.
Again thanks for your time.

Post Reply