I'm in a process of writing acceptance tests of company's web application. What I'm using is Codeception with Webdriver and Firefox browser. I have a problem I cannot resolve despite hours and hours of searching.
The question is simple: Why my test sometimes freezes in one point for so long (about 5 minutes). After that it continues and works like a charm.
This is Selenium output:
14:18:27.515 INFO - Executing: [find elements: By.linkText: Loads])
14:23:04.375 INFO - Done: [find elements: By.linkText: Loads]
To make things even more interesting I can say that sometimes it goes by very fast. Desired element is present and visible in browser window - it is simple span with "Loads" text, and this is command I use:
$I->click(['link'=>"Loads"]);