Relative Content

Tag Archive for javaselenium-webdriverconsolefetch-api

Unable to execute fetch command in Browser console using JAVA/Selenium

To trigger an API call, I’m trying to execute fetch command through browser console using JAVA/Selenium (As it is internal site, I’m using this approach)
But the fetch statement is just printed on the console and not executed.
If I manually run the same fetch command (copy, paste and enter in console), I’m able to see the API call triggered under networks tab and Promise is created in console