MobileKeywords methods

class AircvLibrary.AircvLibrary[source]

Wrapper Keywords for RobotFramework to click mobile screen, based on opencv & aircv.

mobile_click_image(target, index=1)[source]
Parameters:
  • target – the target image that should be clicked
  • index – select the N-th element; 0 -> the last one
Returns:

match info

mobile_click_in(parent_image, sub_image)[source]

click the sub image in the parent image

mobile_get_image_location_in(parent_image, sub_image)[source]

get the sub image’s coordinate which in the parent image

mobile_get_images_location(target, index=1)[source]

get the N-th image’s coordinate in current screen

mobile_get_images_num(target)[source]

get sum of the image in current screen

mobile_image_listdir()[source]

show the target image directory’s content

mobile_image_set_path(path='None')[source]
Parameters:path – set the target image path
Returns:None
mobile_image_set_timeout(time_num)[source]
Parameters:time_num – wait in N secs to capture background screen
Returns:None
mobile_screen_should_contain(target)[source]

assert current screen should contain target image

mobile_screen_should_not_contain(target)[source]

assert current screen should NOT contain target image