So, if it's the PC you are working on and you want to run tests too, firefox is not for you. Firefox is only working if running only one instance. new-instance (make headless run while you are already on firefox) is not working and -no-remote didn't help. Even though it's not perfect because it runs independently if the page if fully loaded or not.Īs for the firefox, it's buggy. Main question: Seems that there is no timeout but if need can be used -timeout X. Since no one answered, I will try to answer my own question after even more research and logical thinking. I tried page.onLoadFinished and then a wait function to make it stay on the page for the exact time after page loading.
#CHROME VS. FIREFOX QUANTUM REVIEW CODE#
So, it only have to run all javascript (an jquery) code on the page which then sends the data using ajax. I don't want to use selenium.Īlso PhantomJS solution would be great.
![chrome vs. firefox quantum review chrome vs. firefox quantum review](https://icdn.digitaltrends.com/image/digitaltrends/firefox-quantum-task-manager-2_1-500x500.jpg)
![chrome vs. firefox quantum review chrome vs. firefox quantum review](https://i0.wp.com/cdnssl.ubergizmo.com/wp-content/uploads/2016/06/Chrome-vs.-Firefox-e1465981309740.jpg)
It was just exiting my currently open firefox tabs without capturing any image. I used "firefox -headless" and tried capturing an screenshot. I'm trying to do the same on firefox ( tried using PhantomJS but it wasn't loading the page correctly even though useragent was set to firefox) but firefox just throws an bank page when I'm trying to start a headless mode. But how long will it work if left working? Is there a default timeout? If yes, how can I change it? If I want to run it exactly 30 minutes after page finished loading? Main question: I used chrome headless command -remote-debugging-port=80. My goal is to calculate stats based on how long the user stays on the website.
![chrome vs. firefox quantum review chrome vs. firefox quantum review](https://i0.wp.com/socialbarrel.com/wp-content/uploads/2012/06/browser-wars-chrome-vs-firefox-2.jpg)
I'm working on a monitoring tool for my website to log data.