2011-03-11 2 views

답변

0

아니요, 현재 마우스를 직접 제어 할 수 없습니다.

이것은 Selenium에서 테스트 할 수 없습니다.

0

= (이것은 작업 클래스

Actions crop = new Actions(driver); 
private By elementBy = By.cssSelector("<css selector for the element>"); 

//Move to the desired co-ordinates of the image element, In the code below I am staring from bottom left corner of the image 
crop.moveToElement(driver.findElement(elementBy),0,0); 

//locate the co-ordinates of image you want to move by and perform the click and hold which mimics the crop action 
crop.clickAndHold().moveByOffset(196,238).release().build().perform(); 
를 사용하여 수행 할 수있다