I’m trying to use Selenium for Python to open Chrome and visit a webpage and would like to do a waitFor that waits for a particular outbound network request from the page I’m visiting to be completed. In an ideal world, there would be a waitForNetworkRequest function like this:
<code>driver = webdriver.get('https://www.somesite.com')
driver.waitForNetworkRequest(url='https://www.othersite.com', status='completed')
</code>
<code>driver = webdriver.get('https://www.somesite.com')
driver.waitForNetworkRequest(url='https://www.othersite.com', status='completed')
</code>
driver = webdriver.get('https://www.somesite.com')
driver.waitForNetworkRequest(url='https://www.othersite.com', status='completed')
Is there anything built into Selenium or other libraries that might achieve this?
3