Closed GoogleCodeExporter closed 8 years ago
Forgot to mention, that code patch can go under WebDriver.php.
Original comment by manga...@gmail.com
on 22 Dec 2011 at 12:22
There is timeouts -command defined in wire protocol:
http://code.google.com/p/selenium/wiki/JsonWireProtocol#/session/:sessionId/time
outs
So I would suggest to modify WebDriverSession::timeouts() -method:
--clip--
public function timeouts($timeouts=null) {
if($timeouts!==null)
return $this->curl('POST', '/timeouts', $timeouts);
$item = new WebDriverSimpleItem($this->url . '/timeouts');
return $item->setMethods(array(
'async_script' => 'POST',
'implicit_wait' => 'POST',
));
}
--clip--
Then you can do:
$timeout = 10000;
$browser->timeouts(array('type'=>'implicit', 'ms'=>$timeout));
$browser->timeouts(array('type'=>'page load', 'ms'=>$timeout));
$browser->timeouts(array('type'=>'script', 'ms'=>$timeout));
Original comment by sami.ve...@gmail.com
on 19 Jun 2012 at 9:33
No, sorry but timeout and implicit_wait are two different things...
Original comment by felix.fr...@cloudaid.org
on 21 Jun 2012 at 7:45
Original comment by manga...@gmail.com
on 9 Mar 2013 at 6:43
Comment 2 raises a good point. Per the JSONWireProtocol, implicit wait is
grouped under timeouts. I missed looking over the comments while I worked on
the fix.
And on the other hand, not so tech savvy users might be more comfortable with a
separate method for setting implicit waits rather than a single method to set
all types of timeouts.
For now, I've implemented what I originally mentioned in revision 68. We can
discuss and repatch later as needed.
Original comment by manga...@gmail.com
on 9 Jun 2013 at 3:09
Marking fixed for now as it's now available, later changes can be to optimize
code/API.
Original comment by manga...@gmail.com
on 9 Jun 2013 at 3:10
Original issue reported on code.google.com by
manga...@gmail.com
on 22 Dec 2011 at 12:21