-
-
Notifications
You must be signed in to change notification settings - Fork 8.4k
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
Red herring for Cygwin users in send_keys docstring #15272
Comments
Would you like to help us improve the documentation? https://github.com/SeleniumHQ/seleniumhq.github.io |
We would need to update the code docs as well as the documentation website. |
I'm not sure what the documentation should say in this situation. Since WebDriver is just an interface, it would be weird for the documentation to contain a lot of implementation-specific detail. I also don't know whether this issue is specific to Geckodriver. Would Chromedriver or another driver handle translating the path? I just don't know, since I have only used Geckodriver, and only for one very specific use case. My sample code using |
Instead of String.replace(), using |
I don't think anything along that line would result in backslashes. Prepending the drive letter (like
This is how I solved it for myself, but that's using a Python library that isn't standard. One of the other answers there says that the translation really is nontrivial. |
Oh, so I think it is up to the client's implementation. From the documentation, we can specify the detail |
Closing this issue as we have specified the detail in #15275 |
https://www.selenium.dev/selenium/docs/api/py/_modules/selenium/webdriver/remote/webelement.html#WebElement.send_keys
That advice is misleading to Cygwin users getting InvalidArgumentException: File not found from send_keys with Geckodriver, which needs the Windows-style absolute path. On Cygwin, os.path returns Posix-style paths.
Also, a syntax error or something is preventing the "Examples" from being formatted as code here:
https://www.selenium.dev/selenium/docs/api/py/webdriver_remote/selenium.webdriver.remote.webelement.html#examples
The text was updated successfully, but these errors were encountered: