'Sets Selenium 2\'s default implicit wait in seconds and
sets the implicit wait for all open browsers.
From selenium 2 function \'Sets a sticky timeout to implicitly
wait for an element to be found, or a command to complete.
This method only needs to be called one time per session.\'
Example:
| ${orig wait} = | Set Selenium Implicit Wait | 10 seconds |
| Perform AJAX call that is slow |
| Set Selenium Implicit Wait | ${orig wait} |'

@keyword
def set_selenium_implicit_wait(self, seconds):

    old_wait = self.get_selenium_implicit_wait()
    self.ctx._implicit_wait_in_secs = timestr_to_secs(seconds)
    for browser in self.browsers.get_open_browsers():
        browser.implicitly_wait(self.ctx._implicit_wait_in_secs)
    return old_wait
