robotframework aircvlibrary
Base on aircv and opencv library,wrap for RobotFramework.
Click target screen area base on OpenCV algorithm.
discuss
install opencv
windows:
#For Win32
pip install http://o8oookdsx.qnssl.com/opencv_python-2.4.12-cp27-none-win32.whl
#For AMD64
pip install http://o8oookdsx.qnssl.com/opencv_python-2.4.12-cp27-none-win_amd64.whl
mac:
brew install python pillow opencv
install
pip install robotframework-aircvlibrary
keywords
-
mobile_click_image(target, index=1)
ckick target area which match phone screen.
-
mobile_click_in(parent_image, sub_image)
click sub_area in special parent_area.
-
mobile_get_images_location(target, index=1)
return the target img coordinate (x, y)
Todo
- Add Web support.
- Separate match and click method.
due to diff platform depend on diff driver(appium/selenium2library).
- This lib may just return (x,y), call click method by yourself.