MCPcopy Index your code
hub / github.com/SeleniumHQ/selenium / getGlobalVar

Method getGlobalVar

java/test/org/openqa/selenium/MiscTest.java:113–116  ·  view source on GitHub ↗
(WebDriver driver, String var)

Source from the content-addressed store, hash-verified

111 }
112
113 private String getGlobalVar(WebDriver driver, String var) {
114 Object val = ((JavascriptExecutor) driver).executeScript("return window." + var + ";");
115 return val == null ? "null" : val.toString();
116 }
117}

Calls 2

executeScriptMethod · 0.65
toStringMethod · 0.65

Tested by

no test coverage detected