0
votes

I am using watir-webdriver, I am able to right click on an element using this code snippet:

s = @browser.span :text => 'Inbox'

s.right_click

After this I am doing this to select an item from the new menu that pops up:

@@browser.send_keys :down
@@browser.send_keys :enter

But that does not work.

Am I missing anything here? Thanks a lot for your help

1

1 Answers

0
votes

First try changing @@browser to @browser.