Skip to content

Commit 1ee594a

Browse files
fixed mypy error and change source var
1 parent 4b7f476 commit 1ee594a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

py/selenium/webdriver/common/actions/key_actions.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ class KeyActions(Interaction):
2727
def __init__(self, source: KeyInput | PointerInput | WheelInput | None = None) -> None:
2828
if source is None:
2929
source = KeyInput(KEY)
30-
self.source = source
31-
super().__init__(source)
30+
self.input_source = source
31+
super().__init__(KEY)
3232

3333
def key_down(self, letter: str) -> KeyActions:
3434
return self._key_action("create_key_down", letter)
@@ -48,6 +48,6 @@ def send_keys(self, text: str | list) -> KeyActions:
4848
return self
4949

5050
def _key_action(self, action: str, letter) -> KeyActions:
51-
meth = getattr(self.source, action)
51+
meth = getattr(self.input_source, action)
5252
meth(letter)
5353
return self

0 commit comments

Comments
 (0)