title: Selenium: pressing enter on popup before the website stops loading
body: <p>we have begun to automate our SAP system using selenium (on chrome). In the beginning, when we enter the link, it starts loading, and before it finishes loading, a windows popup appears. We have to press enter to make it disappear. Only then the page finishes loading and we can continue. The problem is, that when we write driver.get(Path), and after that another line of code, the second line of code is executed only after the page finishes loading. And the enter is supposed to be pressed before that. Does anyone know what to do?</p>