How do I make Chrome Headless after I login manually

后端 未结 2 2061
我在风中等你
我在风中等你 2020-11-29 12:54

I am testing my site. I want the chrome browser to go headless after I manually enter the login credentials.

My selenium code to connect to the website.



        
2条回答
  •  我在风中等你
    2020-11-29 13:29

    If you need headless browser, Please Specify before the browser opening. i Haven't Seen any applications doing that activity

    Things to pay attention to before using headless browser:

    Headless browsers are simulation programs, they are not your real browsers. Most of these headless browsers have evolved enough to simulate, to a pretty close approximation, like a real browser. Still you would not want to run all your tests in a headless browser. JavaScript is one area where you would want to be really careful before using a Headless browser. JavaScript are implemented differently by different browsers. Although JavaScript is a standard but each browser has its own little differences in the way that they have implemented JavaScript. This is also true in case of headless browsers also. For example HtmlUnit headless browser uses the Rihno JavaScript engine which not being used by any other browser.

    Here is Article = https://developers.google.com/web/updates/2017/04/headless-chrome

    Check it out!

提交回复
热议问题