java实现selenium jquery滑动解锁
1.首先了解Jquery实现功能
http://jqueryui.com/slider/
2.实现如下功能
/**
* 模拟jquery滑动解锁功能
* http://jqueryui.com/droppable/
* @param type ---
* @param value
*/
public void slideReleas(String type,String value){
WebElement element = getElement(type, value);
Actions builder = new Actions(driver);
Action dragAndDrop = builder.clickAndHold(element).moveByOffset(275, 275).release().build();
dragAndDrop.perform();
}