Changed the rightClick implementation to use the webdriver API