> img = dev.screen_proxy.get_frame_from_stream() # _frame_from_stream() is deprecated Similar to touch_proxy, it returns a proxy that can automatically initialize an available screenshot method, such as MinicapĪfterwards, you only need to call ``self.screen_proxy.get_frame()`` to get the screenshot warn( "No need to manually specify cap_method, airtest will automatically specify a suitable screenshot method, when airtest>=1.1.2") Just to be compatible with some old codes Specify the screen capture method for the device, but this is not recommended In order to be compatible with the previous `dev.cap_method` In order to be compatible with the previous `dev.touch_method` > dev.touch_proxy.touch((100, 100)) # If the device uses minitouch, it is the same as Module: :py:mod:`_methods.touch_proxy.TouchProxy` Perform touch operation according to self.touch_method rotation_watcher = RotationWatcher( self. sdk_version >= SDK_VERISON_ANDROID10 and self. serialno, server_addr = host, display_id = self. logger import get_loggerĭef _init_( self, serialno = None, host = None, screen_recorder import ScreenRecorder, resize_by_max, get_max_sizeįrom airtest. settings import Settings as STįrom airtest. maxtouch import Maxtouch # noqaįrom airtest. minitouch import Minitouch # noqaįrom airtest. javacap import Javacap # noqaįrom airtest. minicap import Minicap # noqaįrom airtest. screen_proxy import ScreenProxyįrom airtest. error import AdbError, AdbShellErrorįrom airtest. touch_proxy import TouchProxyįrom airtest. rotation import RotationWatcher, XYTransformerįrom airtest. constant import CAP_METHOD, TOUCH_METHOD, IME_METHOD, ORI_METHOD, \įrom airtest. Ffmpeg version 2.5.4 Copyright (c) 2000-2015 the FFmpeg developersīuilt on 02:54:53 with Apple LLVM version 6.0 (clang-600.0.56) (based on LLVM 3.5svn)Ĭonfiguration: –prefix=/usr/local/Cellar/ffmpeg/2.5.4 –enable-shared –enable-pthreads –enable-gpl –enable-version3 –enable-hardcoded-tables –enable-avresample –cc=clang –host-cflags= –host-ldflags= –enable-libx264 –enable-libmp3lame –enable-libvo-aacenc –enable-libxvid –enable-libfreetype –enable-libtheora –enable-libvorbis –enable-libvpx –enable-libopencore-amrnb –enable-libopencore-amrwb –enable-libfaac –enable-libass –enable-ffplay –enable-libspeex –enable-libschroedinger –enable-libfdk-aac –enable-libopus –enable-frei0r –enable-libopenjpeg –disable-decoder=jpeg2000 –extra-cflags=’-I/usr/local/Cellar/openjpeg/1.5.1_1/include/openjpeg-1.LOGGING Constant Android Class _init_ Function touch_proxy Function touch_method Function cap_method Function cap_method Function screen_proxy Function screen_proxy Function get_deprecated_var Function get_default_device Function uuid Function list_app Function path_app Function check_app Function start_app Function start_app_timing Function stop_app Function clear_app Function install_app Function install_multiple_app Function uninstall_app Function snapshot Function shell Function keyevent Function wake Function home Function text Function touch Function double_click Function swipe Function pinch Function swipe_along Function two_finger_swipe Function logcat Function getprop Function get_ip_address Function get_top_activity Function get_top_activity_name Function is_keyboard_shown Function is_screenon Function is_locked Function unlock Function display_info Function get_display_info Function get_current_resolution Function get_render_resolution Function start_recording Function get_frame Function stop_recording Function _register_rotation_watcher Function _touch_point_by_orientation Function adjust_all_screen Function disconnect Functionįrom airtest.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |