admin管理员组文章数量:1391976
print('start--')
driver.start_recording_screen()
print('end---')
TouchAction(driver).tap(x=cx/scale_factor, y=cy/scale_factor).perform()
time.sleep(2)
video_data = driver.stop_recording_screen()
I want to recode the tap action in two seconds on the iphone.
Then printing the log, actually only the 'start_recording_screen' method has cost 4 seconds.
From the 'start_recording_screen' to 'stop_recording_screen', it cost 10 seconds.
The time is too long for me.
Who can help me? Why 'start_recording_screen' is so slow?
appium vesion: 1.22.3
print('start--')
driver.start_recording_screen()
print('end---')
TouchAction(driver).tap(x=cx/scale_factor, y=cy/scale_factor).perform()
time.sleep(2)
video_data = driver.stop_recording_screen()
I want to recode the tap action in two seconds on the iphone.
Then printing the log, actually only the 'start_recording_screen' method has cost 4 seconds.
From the 'start_recording_screen' to 'stop_recording_screen', it cost 10 seconds.
The time is too long for me.
Who can help me? Why 'start_recording_screen' is so slow?
appium vesion: 1.22.3
Share Improve this question edited Mar 13 at 6:15 user2020125 asked Mar 13 at 5:40 user2020125user2020125 113 bronze badges1 Answer
Reset to default 0The driver is trying to capture the previous result before starting the new screen recording. You can disable this with the following (docs):
driver.start_recording_screen(forcedRestart=True)
本文标签: appium startrecordingscreen method very slowStack Overflow
版权声明:本文标题:appium start_recording_screen method very slow - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744718975a2621579.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论