gogabriel / php-webdriver-bindings

Automatically exported from code.google.com/p/php-webdriver-bindings
0 stars 0 forks source link

CWebDriverTestCase uses 'sleep' with non-integer parm, which won't work as expected #20

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Conduct an operation which will take some time to happen (such as getElement 
or isTextPresent
2. Note in selenium output that the attempts are re-executed at a higher 
frequency than the half second stipulated by protected $waiting_time = 0.5;

Replace (two occurrences of)
                sleep( $this->waiting_time );
with
                usleep($this->waiting_time * 1000000);
and that should work as expected.

Original issue reported on code.google.com by m...@excelsystems.com on 5 Jan 2012 at 12:55