'Sets the delay in seconds that is waited after each Selenium command.
This is useful mainly in slowing down the test execution to be able to
view the execution. `seconds` may be given in Robot Framework time
format. Returns the previous speed value in seconds.
One keyword may execute one or many Selenium commands and therefore
one keyword may slow down more than the ``seconds`` argument defines.
Example if delay is set to 1 second and because `Click Element`
executes two Selenium commands, then the total delay will be 2 seconds.
But because `Page Should Contain Element` executes only one selenium
command, then the total delay will be 1 second.
Example:
| Set Selenium Speed | .5 seconds |'

@keyword
def set_selenium_speed(self, seconds):

    old_speed = self.ctx._speed_in_secs
    self.ctx._speed_in_secs = timestr_to_secs(seconds)
    for browser in self.browsers.browsers:
        browser._speed = self.ctx._speed_in_secs
        self._monkey_patch_speed(browser)
    return old_speed
