'Sets the timeout in seconds used by various keywords.
There are several `Wait ...` keywords that take timeout as an
argument. All of these timeout arguments are optional. The timeout
used by all of them can be set globally using this keyword.
See `Timeouts` for more information about timeouts.
The previous timeout value is returned by this keyword and can
be used to set the old value back later. The default timeout
is 5 seconds, but it can be altered in `importing`.
Example:
| ${orig timeout} = | Set Selenium Timeout | 15 seconds |
| Open page that loads slowly |
| Set Selenium Timeout | ${orig timeout} |'

@keyword
def set_selenium_timeout(self, seconds):

    old_timeout = self.get_selenium_timeout()
    self.ctx._timeout_in_secs = timestr_to_secs(seconds)
    for browser in self.browsers.get_open_browsers():
        browser.set_script_timeout(self.ctx._timeout_in_secs)
    return old_timeout
