How to make the selenium webdriver script to wait for backend api request to return a response? How to make the selenium webdriver script to wait for backend api request to return a response? selenium selenium

How to make the selenium webdriver script to wait for backend api request to return a response?


Use the below code to wait till the requests are fulfilled using ngWebDriver as below:

ngWebDriver.waitForAngularRequestsToFinish();

Then use any explicit wait method for checking the visibility of the Element on the Landing page.