When I started Chrome's WebDriver (Selenium) in Python, the following error was displayed.
After investigating, it seems that Chrome's WebDriver (Selenium) has crashed. This time, I will create it as a reminder about how to deal with it.
There was an article on Qiita about what to do if Chrome in a production environment crashes. https://qiita.com/kazuki_hamatake/items/b37602254d6fed295475
When I referred to the article, I found that the shortcut for Chrome was --disable-features = RendererCodeIntegrity
.
It will be solved if you add it.
If you load this as an option of WebDriver (Selenium), it seems to be solved.
The code is below.
Create an argument for --disable-features = RendererCodeIntegrity
in options.add_argument and
I'm passing it to the webdriver.
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
import chromedriver_binary
#Launch browser
options = Options()
options.add_argument('--disable-features=RendererCodeIntegrity')
driver = webdriver.Chrome(options=options)
#Access the Google search screen
driver.get('https://www.google.co.jp/')
#Exit the browser
driver.quit()