Skip to content

Commit

Permalink
[py] document cygwin path for send_keys (#15275)
Browse files Browse the repository at this point in the history
  • Loading branch information
Delta456 authored Feb 13, 2025
1 parent f02c68a commit 6836d0a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions py/selenium/webdriver/remote/webelement.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,8 @@ def send_keys(self, *value: str) -> None:
>>> # Generally it's better to wrap the file path in one of the methods
>>> # in os.path to return the actual path to support cross OS testing.
>>> # file_input.send_keys(os.path.abspath("path/to/profilepic.gif"))
>>> # When using Cygwin, the path need to be provided in Windows format.
>>> # file_input.send_keys(f"C:/cygwin{os.path.abspath('path/to/profilepic.gif').replace('/', '\\')}")
"""
# transfer file to another machine only if remote driver is used
# the same behaviour as for java binding
Expand Down

0 comments on commit 6836d0a

Please sign in to comment.