Skip to content

Commit 6836d0a

Browse files
authored
[py] document cygwin path for send_keys (#15275)
1 parent f02c68a commit 6836d0a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

py/selenium/webdriver/remote/webelement.py

+2
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,8 @@ def send_keys(self, *value: str) -> None:
282282
>>> # Generally it's better to wrap the file path in one of the methods
283283
>>> # in os.path to return the actual path to support cross OS testing.
284284
>>> # file_input.send_keys(os.path.abspath("path/to/profilepic.gif"))
285+
>>> # When using Cygwin, the path need to be provided in Windows format.
286+
>>> # file_input.send_keys(f"C:/cygwin{os.path.abspath('path/to/profilepic.gif').replace('/', '\\')}")
285287
"""
286288
# transfer file to another machine only if remote driver is used
287289
# the same behaviour as for java binding

0 commit comments

Comments
 (0)