Can Selenium web driver have access to javascript global variables? Can Selenium web driver have access to javascript global variables? django django

Can Selenium web driver have access to javascript global variables?


Yes, you should be able to that with code similar to the below:

browser.execute_script("return globalVar;")