| def pause(self, duration_in_millis): | |
| if self._driver.w3c: | |
| self.w3c_actions.key_action.pause(self, duration_in_millis) | |
| else: | |
| self._actions.append(lambda: self._driver.execute( | |
| time.sleep(duration_in_millis/1000.0) | |
| )) | |
| return self |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment