Selenium expects calls to asynchronous resources before moving to a new page.
Ref.
<script src="https://apis.google.com/js/platform.js" async defer></script>
On a website with many external apis (such as Google Analytics and share them with G +, Facebook and Twitter). Selenium spends more time waiting for asynchronous calls than when running tests.
Is there a way to disable this behavior so that selenium does not wait for asynchronous external api calls?
source
share