I'm facing some difficulties while trying to get the content of 'Network' tab in Chrome Devtools using a python script. The script should use Selenium library in order to perform this action. I was wondering if this is possible, and if so, how would you do that? I've read some suggested solutions but none of them worked for me.
chrome_path = r"C:\Python27\chromedriver_win32/chromedriver.exe"
chrome_options = Options()
chrome_options.add_argument("--headless")
chrome_options.add_argument("window-size=1200,1100")
driver = webdriver.Chrome(executable_path=chrome_path,chrome_options=chrome_options)
driver.get("https://www.container.io/login")
elementUser = driver.find_element_by_id('username')
elementPassword = driver.find_element_by_id('password')
elementUser.send_keys(user)
elementPassword.send_keys(password)
What I want to capture on Network tab is :
Query String Parameters
access_token: XXXXXXXXX
evnId: XxxXXx
sortBy: xxXXxx