right click and select options in the context menu

1,953 views
Skip to first unread message

Tamilarasan Rajendran

unread,
Dec 29, 2014, 10:36:00 AM12/29/14
to robotframe...@googlegroups.com
Hi,

I am having scenario where i need to right click and select the specific item in the menu.

I am using Open Context menu keyword from selenium2Library. but i am unable to select the specific item in the menu.

Please guide me in resolving this issue.

Thank you,

Regards,
Tamilarasan.R

Ed Manlove

unread,
Dec 31, 2014, 8:19:00 PM12/31/14
to robotframe...@googlegroups.com
Tamilarasan,

Interesting question. I hadn't used this keyword before nor had the task of selecting a context menu item. But I am currently looking at creating a test script/page for Pull Request #289. Doing so I looked into both the the Selenium2Library 'Open Context Menu' keyword and the underlying Selenium context_click method. This Selenium context click is more of a right-click action than a context menu option.

Back to your question have you tried doing a context click then pressing down arrow X times and then press enter? Might work althought you might need to create your own keyword that strings together a Selenium Action chain to do all those steps together.

Ed

Ed Manlove

unread,
Jan 5, 2015, 7:11:17 PM1/5/15
to robotframework-users
Not yet but looking at hmalphettes/robotframework-selenium2library-extensions you might be able to use that library, in addition to Selenium2Library, to accomplish this. See https://github.com/hmalphettes/robotframework-selenium2library-extensions

Ed



On 01/05/2015 01:45 AM, Tamilarasan Rajendran wrote:
Hi,

Do we have a keyword keyword to press x times down in selenium 2 library.

Thank you,

Regards,
Tamilarasan.R
Reply all
Reply to author
Forward
0 new messages