rtomac/robotframework-selenium2library — pull request #28 by j1z0 (2012-01-04 04:01:34+00:00)
Title: Implicit wait

OK this is my stab at the implicit_wait issue. Here is my thinking about it.

1. implicit_wait will make selenium failures take longer so by default it should be turned off: implicit_wait=0.0
2. When s2l is initially created an implicit_wait value can be set that will then be used by each new browser that is created. This is largely a convenience function.
3. When creating a new browser i.e. calling open_browser there is now an optional argument `implicit_wait` if this is specified then new browser will be created with whatever implicit wait value is passed. If not the browser will use the s2l default implicit_wait time set during library creation.
4. set_selenium_implicit_wait will now update the default implicit_wait value and it will overwrite the implicit wait value for all currently open browsers.
5. get_selenium_implicit_wait will return the default implicit_wait value. There is a potential issue here in that if you call open_browser pass in an implicit_wait time and then call get_selenium_implicit_wait the 2 values might not match. The only work around I can see to this is to extend WebDriver it self to store / return the currently set implicit wait time but I don't see a real need for it at this point so I'm leaving it alone.