<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: ZcodeZ777</title>
    <description>The latest articles on DEV Community by ZcodeZ777 (@zcodez777).</description>
    <link>https://dev.to/zcodez777</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F2827031%2Fc0aa3868-3216-479c-8b0e-be4fc5792633.png</url>
      <title>DEV Community: ZcodeZ777</title>
      <link>https://dev.to/zcodez777</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/zcodez777"/>
    <language>en</language>
    <item>
      <title>'selenium.common.exceptions.SessionNotCreatedException' Error using SeleniumBase</title>
      <dc:creator>ZcodeZ777</dc:creator>
      <pubDate>Thu, 06 Feb 2025 21:56:30 +0000</pubDate>
      <link>https://dev.to/zcodez777/seleniumcommonexceptionssessionnotcreatedexception-error-using-seleniumbase-9g9</link>
      <guid>https://dev.to/zcodez777/seleniumcommonexceptionssessionnotcreatedexception-error-using-seleniumbase-9g9</guid>
      <description>&lt;p&gt;I am currently using SeleniumBase for web automation in Python, however, occasionally I am receiving a 'session not created' error:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;test16.py - selenium.common.exceptions.SessionNotCreatedException: Message: session not created: cannot connect to chrome at 12...
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;For example, in this code block:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;from seleniumbase import BaseCase
BaseCase.main(__name__, __file__, "--uc")

class MultipleDriversTest(BaseCase):
    def test_multiple_drivers(self):
        url1 = "https://invideo.io/perf/ga-ai-video-generator-web/?utm_source=google&amp;amp;utm_medium=cpc&amp;amp;utm_campaign=Top16_Search_Brand_Exact_EN&amp;amp;adset_name=InVideo&amp;amp;keyword=invideo&amp;amp;network=g&amp;amp;device=c&amp;amp;utm_term=invideo&amp;amp;utm_content=InVideo&amp;amp;matchtype=e&amp;amp;placement=g&amp;amp;campaign_id=18035330768&amp;amp;adset_id=140632017072&amp;amp;ad_id=616240030555&amp;amp;gad_source=1&amp;amp;gclid=Cj0KCQiAvvO7BhC-ARIsAGFyToWFf0L_8iqkB32qg9prKxVApsklZ8HA69LW2O0Z6XC1nbXXz9sCTTEaAinZEALw_wcB"
        driver1 = self.driver
        self.activate_cdp_mode(url1)
        url2 = "https://temp-mail.org/en"
        driver2 = self.get_new_driver(undetectable=True) # &amp;lt;- ERR
        self.activate_cdp_mode(url2)
        self.sleep(2)
        print(driver1.get_current_url())
        self.sleep(2)
        print(driver2.get_current_url())
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;I constantly receive the error when the program tries to get the second driver.&lt;/p&gt;

&lt;p&gt;Does anybody know what the cause of this may be?&lt;/p&gt;

</description>
      <category>python</category>
      <category>selenium</category>
      <category>seleniumbase</category>
      <category>help</category>
    </item>
  </channel>
</rss>
