I use Selenium and PHPUnit. In my testcases, I use
PHPUnit_Extensions_SeleniumTestCase::waitForElementPresent($xpath);
to wait for some time until element specified by $xpath becomes present. Is there any way to change the maximum time of waiting?
waitForElementPresent()takes two arguments. The first one is the locator and the other is Timeout in miliseconds.Example :
This will wait for the given xpath for 80 seconds.