Can Selenium Web Driver Have Access To Javascript Global Variables?
Hi: I'm writing tests for django with javascript and I was wondering if the Selenium webdriver can access a javascript global variable. mypage has a script that has a global variab
Solution 1:
Yes, you should be able to that with code similar to the below:
browser.execute_script("return globalVar;")
Post a Comment for "Can Selenium Web Driver Have Access To Javascript Global Variables?"