title: How to click on devtools console tab with Selenium and python
body: <p>I have this code:</p>
  <pre><code>async def acess_all():                         
   def acess_localhost():                               
    option = Options()                            
    option.add_argument(&quot;--no-sandbox&quot;)       
    option.debugger_Address=&quot;127.0.0.1:8081&quot;    
    driver = webdriver.Chrome(options=option)     
    driver.get(&quot;http://127.0.0.1:8081&quot;)        
    wait = WebDriverWait(driver, 5)            
    wait.until(EC.element_to_be_clickable((By.CSS_SELECTOR, 'a.item'))).click()                 
   try:                                           
    t =  threading.Thread(target=get_infos)        
    t.start()                                     
    os.system(&quot;chromium --remote-debugging-port=8081 https://google.com&quot;)                    
   except:                                        
    print(&quot;Error!&quot;)
  </code></pre>
  <p><strong>What I need:</strong></p>
  <p>Guys, as you can see, this code opens the Chrome browser on the Google page, and my Selenium code opens the browser on localhost because it's accessing where the remote-debbuging address points to, but I can't access the console tab of devtools, I need to access this tab using Selenium and run a javascript command to copy the cookie in json format, but I can't, how can I access the devtools console tab?</p>