I have initialized a JavascriptExecutor but I am not getting the desired result. The object is always null.
SeleniumDriver driver = new SeleniumDriver(DriverType.ChromeDriver);
driver.get("https://www.xxxxxx.info/");
driver.waitForPageToBeLoaded();
JavascriptExecutor js = (JavascriptExecutor) driver.getWebDriver();
Object ob = js.executeScript("___grecaptcha_cfg.clients[0]");
When I check the console, this is what it shows:
https://i.sstatic.net/gIzn8.png
Why am I unable to retrieve the data using JavascriptExecutor?