方法:在…\site-packages\SeleniumLibrary\keywords的element.py中加入方法def right_click_element方法,代码如下:
@keyword
def right_click_element(self,locator):
element = self.find_element(locator)
action = ActionChains(self.driver)
action.context_click(element).perform()
保存后重启RF直接调用right click element关键字就可以