We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OS: Linux
Selenium Version: 3.6.0
Browser: Firefox
Browser Version: 55.0.2
ActionChains.pause to work as described in documentation.
The following code
from selenium import webdriver` from selenium.webdriver import ActionChains` from selenium.webdriver.common.keys import Keys` driver = webdriver.Firefox() driver.get("http://www.google.com") elem = driver.find_element_by_name("q") actions = ActionChains(driver) actions.key_down(Keys.CONTROL, elem) actions.pause(1) actions.key_up(Keys.CONTROL, elem) actions.perform() driver.close()
generates the following error:
Traceback (most recent call last): File "/media/work/_Down/coding/test.py", line 21, in <module> actions.pause(1) File "/usr/local/lib/python3.5/dist-packages/selenium/webdriver/common/action_chains.py", line 319, in pause self.w3c_actions.pointer_action.pause(self, seconds) TypeError: pause() takes from 1 to 2 positional arguments but 3 were given
which is likely caused by copy-paste:
def pause(self, seconds): if self._driver.w3c: self.w3c_actions.pointer_action.pause(self, seconds) self.w3c_actions.key_action.pause(self, seconds) else: self._actions.append(lambda: self._driver.execute( time.sleep(seconds) )) return self
The text was updated successfully, but these errors were encountered:
5e6b0c9
Fixed in 5e6b0c9, will be in the next release. Thanks for the bug report!
Sorry, something went wrong.
No branches or pull requests
Meta -
OS: Linux
Selenium Version: 3.6.0
Browser: Firefox
Browser Version: 55.0.2
Expected Behavior -
ActionChains.pause to work as described in documentation.
Actual Behavior -
Steps to reproduce -
The following code
generates the following error:
which is likely caused by copy-paste:
The text was updated successfully, but these errors were encountered: