<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: WebDriverException: Message: unknown error: Chrome failed to start: exited abnormally. in Get Started Discussions</title>
    <link>https://community.databricks.com/t5/get-started-discussions/webdriverexception-message-unknown-error-chrome-failed-to-start/m-p/40736#M753</link>
    <description>&lt;P&gt;Hi, Looks like the issue is with your browser, could you please try to change the browser and confirm?&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Please tag&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.databricks.com/t5/user/viewprofilepage/user-id/26078" target="_blank"&gt;@Debayan&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;with your next comment, which will get me notified. Thanks!&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 21 Aug 2023 07:18:04 GMT</pubDate>
    <dc:creator>Debayan</dc:creator>
    <dc:date>2023-08-21T07:18:04Z</dc:date>
    <item>
      <title>WebDriverException: Message: unknown error: Chrome failed to start: exited abnormally.</title>
      <link>https://community.databricks.com/t5/get-started-discussions/webdriverexception-message-unknown-error-chrome-failed-to-start/m-p/39913#M719</link>
      <description>&lt;P&gt;Hiiiii,&lt;/P&gt;&lt;P&gt;I want to scratch a text from the web page with simple code:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;from selenium import webdriver

# Set options to make browsing easier

#Function is responsible to create a driver and return that driver.
def get_driver():
    chrome_options = webdriver.ChromeOptions()
    chrome_options.add_argument("start-maximized")
    chrome_options.add_argument("disable-infobars")
    chrome_options.add_argument("disable-dev-shm-usage")
    chrome_options.add_argument("no-sandbox")
    chrome_options.add_experimental_option("excludeSwitches", ["enable-automation"])
    chrome_options.add_argument("disable-blink-features=AutomationControlled")
    

    driver = webdriver.Chrome(options = chrome_options)

    #connect driver to a web page
    driver.get("http://automated.pythonanywhere.com")
    #return driver for this particular web page
    return driver

def main():
    driver = get_driver()
    element = driver.find_element(by = "xpath", value = "/html/body/div[1]/div/h1[1]")
    return element.text

print(main())&lt;/LI-CODE&gt;&lt;P&gt;The error message:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;WebDriverException: Message: unknown error: Chrome failed to start: exited abnormally.
  (unknown error: DevToolsActivePort file doesn't exist)
  (The process started from chrome location /root/.cache/selenium/chrome/linux64/115.0.5790.170/chrome is no longer running, so ChromeDriver is assuming that Chrome has crashed.)
Stacktrace:
#0 0x55e176cd1613 
#1 0x55e1769fd537 
#2 0x55e176a28588 
#3 0x55e176a255d9 
#4 0x55e176a65643 
#5 0x55e176a64d8f 
#6 0x55e176a5c803 
#7 0x55e176a3068b 
#8 0x55e176a3142e 
#9 0x55e176c92c28 
#10 0x55e176c96af7 
#11 0x55e176ca101c 
#12 0x55e176c97723 
#13 0x55e176c66457 
#14 0x55e176cbb628 
#15 0x55e176cbb7b7 
#16 0x55e176cca483 
#17 0x7efedfacc609 start_thread
---------------------------------------------------------------------------
WebDriverException                        Traceback (most recent call last)
&amp;lt;command-1651202861729537&amp;gt; in &amp;lt;cell line: 6&amp;gt;()
      4     return element.text
      5 
----&amp;gt; 6 print(main())

&amp;lt;command-1651202861729537&amp;gt; in main()
      1 def main():
----&amp;gt; 2     driver = get_driver()
      3     element = driver.find_element(by = "xpath", value = "/html/body/div[1]/div/h1[1]")
      4     return element.text
      5 

&amp;lt;command-1651202861729536&amp;gt; in get_driver()
     12 
     13 
---&amp;gt; 14     driver = webdriver.Chrome(options = options)
     15 
     16     #connect driver to a web page&lt;/LI-CODE&gt;&lt;P&gt;Can you explain what does this error mean and how can I solve it?&lt;/P&gt;</description>
      <pubDate>Tue, 15 Aug 2023 09:01:24 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/webdriverexception-message-unknown-error-chrome-failed-to-start/m-p/39913#M719</guid>
      <dc:creator>AleksandraFrolo</dc:creator>
      <dc:date>2023-08-15T09:01:24Z</dc:date>
    </item>
    <item>
      <title>Re: WebDriverException: Message: unknown error: Chrome failed to start: exited abnormally.</title>
      <link>https://community.databricks.com/t5/get-started-discussions/webdriverexception-message-unknown-error-chrome-failed-to-start/m-p/40736#M753</link>
      <description>&lt;P&gt;Hi, Looks like the issue is with your browser, could you please try to change the browser and confirm?&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Please tag&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.databricks.com/t5/user/viewprofilepage/user-id/26078" target="_blank"&gt;@Debayan&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;with your next comment, which will get me notified. Thanks!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Aug 2023 07:18:04 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/webdriverexception-message-unknown-error-chrome-failed-to-start/m-p/40736#M753</guid>
      <dc:creator>Debayan</dc:creator>
      <dc:date>2023-08-21T07:18:04Z</dc:date>
    </item>
  </channel>
</rss>

