Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to open chrome console in selenium webdriver

import time
from selenium import webdriver

chrome_options = webdriver.ChromeOptions()
chrome_options.addArguments("--auto-open-devtools-for-tabs");

driver = webdriver.Chrome(chrome_options=chrome_options)
driver.maximize_window()
driver.get('https://google.com')
time.sleep(3)
driver.close()
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #open #chrome #console #selenium #webdriver
ADD COMMENT
Topic
Name
2+2 =