My tests are full of statements like these:
I'm using this to wait for a page to load after I submit a form. Usually this works. But lately I've started running tests on a virtual machine with less memory, and apparently the one second given in that method call is not enough.
So the question is - how to properly wait for a page to load, after a submit?
I've considered the waitForElement() method, but this seems a little odd and not as much promising, as each time I should wait on some distinct element to find, instead of just waiting for the page.
Selenium have a method clickAndWait(), right? How do I use it instead?