最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

appium start_recording_screen method very slow - Stack Overflow

programmeradmin1浏览0评论
            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 badges
Add a comment  | 

1 Answer 1

Reset to default 0

The 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)
发布评论

评论列表(0)

  1. 暂无评论