I am using typescript, packages
"selenium-webdriver": "^4.8.1",
"@types/selenium-webdriver": "^4.1.11",
and chromedriver.
I am interested that after opening a particular site to “listen to the network calls”.
Example
await driver.get('https://example.com");
Now I want to intercept all the request and responses AJAX ones that this site is doing.
I need to fetch the API response for a particular url and proceed with the assertion logic of my selenium test.
How can I achieve that?
Thanks in advance