I am using a selenium headless Chrome on python to scrape a website. This website uses synchronous XMLHttpRequest, which is probably worse than asynchronous, but I don't really care (not my website). Each time my selenium webdriver visits this website, the Chrome deprecation message will be printed in my console:
"Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check https://xhr.spec.whatwg.org/."
How to stop this message from popping up?
This may have already been solved, but as this thread (link here) explains, adding a new argument will help.
options.add_argument("--log-level=3")
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With