# -*- coding: utf-8 -*- """ AirTest Script: Puzzle Merge - 2x2 large image composition """ from airtest.core.api import * auto_setup(__file__) def main(): start_app("com.inspection.camera") sleep(2) width, height = device().get_current_resolution() # 进入拼图页入口(假设在屏幕右侧) touch((width * 2 / 3, height - 150)) sleep(2) snapshot("puzzle_merge_page.png") print("Saved puzzle_merge_page.png") if __name__ == "__main__": main()