WebDriverException: Invalid Argument: Can't Kill an Exited Process with GeckoDriver, Selenium, and Python on RaspberryPi3
Question:
Users are encountering a WebDriverException error while attempting to run Selenium with headless Firefox on a Raspberry Pi 3. The specific error message is: "Message: invalid argument: can't kill an exited process."
Background Information:
Code Snippet:
<code class="python">from selenium import webdriver from selenium.webdriver.firefox.options import Options options = Options() options.headless = True driver = webdriver.Firefox(options=options)</code>
Answer:
To resolve this issue, ensure that you are using headless mode when running Firefox on a system without a display.
Solution:
<code class="python">options.headless = True</code>
The above is the detailed content of Here are a few question-based titles that fit the provided information: Short & Punchy: * Why Am I Getting \'Invalid Argument: Can\'t Kill an Exited Process\' with Selenium on my Raspb. For more information, please follow other related articles on the PHP Chinese website!