Skip to content

[🐛 Bug]: action_builder.ActionBuilder.add_wheel_input throws TypeError #10210

@colons

Description

@colons

Calling ActionBuilder.add_wheel_input() will always throw a TypeError. There are no tests or docs that I can see, so I'm unsure whether to remove the kind argument from add_wheel_input or add it to WheelInput.__init__(). This appears to have been the case since it was introduced.

How can we reproduce the issue?

You can reproduce the TypeError without even creating a WebDriver instance by doing:

>>> from selenium.webdriver.common.action_chains import ActionChains
>>> ActionChains('').w3c_actions.add_wheel_input('', '')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File ".../selenium/webdriver/common/actions/action_builder.py", line 77, in add_wheel_input
    new_input = WheelInput(kind, name)
TypeError: __init__() takes 2 positional arguments

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-pyPython BindingsI-defectSomething is not working as intended

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions