Skip to content
New issue

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

[py] document cygwin path for send_keys #15275

Merged
merged 3 commits into from
Feb 13, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading