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)