Closed hugovk closed 4 years ago
Here is a solution: https://stackoverflow.com/questions/48537028/selenium-how-to-use-headless-chrome-on-aws. It does work.
Hi, but my rhel8 does not have "chromium-chromedriver". May be you know more about this solution this trouble? Thanks
Use Warnings - https://docs.python.org/3/library/warnings.html
import warnings
warnings.filterwarnings('ignore')
I think this is the line that needs to change to switch over to headless Chrome or Firefox. Personally I would prefer Firefox if it's as easy as Chrome.
I'm trying to get around this issue on Ubuntu but I don't see how to switch to headless chrome, any advice would be very much appreciated.
I'm trying to get around this issue on Ubuntu but I don't see how to switch to headless chrome, any advice would be very much appreciated.
chrome_options = webdriver.ChromeOptions()
chrome_options.add_argument('--headless')`
driver = webdriver.Chrome('chromedriver',chrome_options=chrome_options)
driver.get("http://www.google.com")
I have hundreds of mails on my server with this warning:
(The PhantomJS repo is being archived: https://github.com/ariya/phantomjs/issues/15344 There may be a fork soon: https://github.com/ariya/phantomjs/issues/15345.)
Ideally diffengine should switch from PhantomJS to headless Chrome (eg.) or Firefox (or the fork), but it'd be good to silence this specific warning in the meantime.