Closed Rajagopalan-M closed 4 years ago
@Rajagopalan-M I don't think the Chrome version will affect the recorder. Can you share how you're providing the title to the recorder?
@kapoorlakshya
This is the way I am passing the title
@recorder = ScreenRecorder::Window.new(title: ScreenRecorder::Titles.fetch('chrome').last, output: File.expandpath("Output/Video/#{scenario}/#{testCase.first + '' + testCase[1]}.mp4"))
@kapoorlakshya Hi, any update on this? I couldn't upgrade to the newest version of Chrome because of this video recorder. Your recorder works fine in earlier version but not in the newer version.
Hi @Rajagopalan-M, the problem is not with Chrome or the recorder. The issue is that your project (test framework I assume) is attempting to start the recorder before the page in the browser is fully loaded. The actual title of the page is AllianzGo - Google Chrome
, but the log you shared shows that the URL is being used. This tells us that the page is still loading when the recorder tries to get a handle on the browser window.
The following worked for me once the page was fully loaded:
rec = ScreenRecorder::Window.new(title: "AllianzGo - Google Chrome", output: 'rec.mp4')
rec.start
Try adding @browser.wait
(using watir) or some other wait strategy to make sure the page is fully loaded first. Another thing you could do is start the recorder before navigating to your test app:
Hi, it's not happening while it starts the browser. it's happening while it closes the browser.
[gdigrab @ 0000028292b5adc0] Can't find window 'https://uat.allianz-go.com/login.max?preprocess=true - Google Chrome', aborting.
title=https://uat.allianz-go.com/login.max?preprocess=true - Google Chrome: I/O error
Hmm... I am unable to reproduce the issue in Chrome 77. Are you stopping the recorder after closing the window?
@Rajagopalan-M I think this error is definitely happening when you start the recorder. I would recommend waiting for the page to load before starting the recorder. Give it a try and let me know if you still get this error.
Okay, I am in vacation now. Once I am back, let me try and let you know. I am using your gem in my framework. And I am using my framework in my many project. So when Chrome upgraded, all the people who uses my framework got this problem.
Sounds good! Enjoy your vacation.
I am back. But now another problem is, higher version of chrome has some problem. Can't even open google.com in chrome now. Once chrome people fix this problem, I will get back to you. Until then I use your recent version of gem with Chrome <75. Thanks for supporting.
@kapoorlakshya Hi, I started using chrome 78 and your gem works perfectly. Thanks. Your gem is very useful for me, I have incorporated inside my framework. Videos are good to review the errors.
Good :)
I have upgraded to Chrome77 version and now your recorder is not working. It throws this error
ffmpeg.log is here