Selenium怎么鼠标右击页面上的一个元素,求指教?
Selenium IDE鼠标右击页面上的一个元素,用那个方法啊? 本帖最后由 Arabellah 于 2011-7-27 11:42 编辑只知道点击,不知道右击 mouseUpRight(locator)
Arguments:
locator - an element locator
Simulates the event that occurs when the user releases the right mouse button (i.e., stops holding the button down) on the specified element. 回复 3# dvsam
大哥,这个方法是用来松开鼠标右击的吧 selenium.contextMenu(locator) mouseDownRight
public void mouseDownRight(java.lang.String locator)
Description copied from interface: Selenium
Simulates a user pressing the right mouse button (without releasing it yet) on the specified element.
Specified by:
mouseDownRight in interface Selenium
Parameters:
locator - an element locator
然后
mouseUpRight
public void mouseUpRight(java.lang.String locator)
Description copied from interface: Selenium
Simulates the event that occurs when the user releases the right mouse button (i.e., stops holding the button down) on the specified element.
Specified by:
mouseUpRight in interface Selenium
Parameters:
locator - an element locator
在使用过程中,需要多看API 和官方论坛
页:
[1]