Jcrop을 사용하면 서버 측에서 나중에 이미지를자를 수 있습니다. http://deepliquid.com/projects/Jcrop/demos.php 셀렌으로 테스트하고 싶습니다. 어떻게 든 mouseDownAt() 등으로 이미지의 일부를 선택하도록 브라우저에 지시 할 수 있습니까? 마우스를 직접 제어 할 수 있습니까?Selenium으로 이미지 자르기 (선택)를 테스트하는 방법은 무엇입니까?
3
A
답변
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();
를 사용하여 수행 할 수있다
관련 문제
- 1. Selenium으로 동적 이미지 컨텐츠를 테스트하려면 어떻게해야합니까?
- 2. 이미지 업 로더 + 자르기
- 3. WPF 이미지 자르기
- 4. 자동 자르기 이미지 라이브러리
- 5. 큰 이미지 자르기 방법
- 6. 업로드 및 자르기 이미지
- 7. 별 모양의 이미지 자르기
- 8. 이미지 자르기 문제
- 9. 이미지 업로드 및 자르기
- 10. 이미지 자르기 스크립트
- 11. JavaScript 이미지 자르기 문제
- 12. Android 자르기 이미지 크래시
- 13. 향상된 이미지 자르기
- 14. 자바에서 자르기 이미지
- 15. URL의 이미지 다음 자르기
- 16. raphael.js 자르기 이미지
- 17. PHP 이미지 자르기 오류
- 18. PHP에서 이미지 자르기
- 19. 이미지 Richfaces에서의 자르기
- 20. C#에서 이미지 자르기
- 21. 자르기 이미지 Kinect
- 22. Silverlight 3에서 이미지 자르기
- 23. ipad - TabBarItem 이미지 자르기
- 24. 자르기 이미지 센터에서
- 25. 런타임에서 안드로이드에서 이미지 자르기
- 26. 이미지 자르기 모듈
- 27. JPanel 레이아웃 이미지 자르기
- 28. ImageScience로 이미지 자르기
- 29. 동적 이미지 자르기 (PHP)
- 30. 아이폰에서 자르기 이미지 상자 크기를 줄이는 방법은 무엇입니까?