Comments (11)
Switching to sendNativeKeyEvent requires significant amount of work to map Selenium key codes to Firefox ones.
from selenium.
This pull request should be for: #588
from selenium.
is this issue dead?
any ETA on that?
from selenium.
is this issue dead?
any ETA on that?
I'm not a java developer, tho if it's a small fix I'll make a PR with some guidance.
I have a semi completed mapping of keycodes to keys
from selenium.
@goldylucks it's kind of dead... the problem is one would need to refactor the code, since sendKeyEvent is deprecated in firefox and it suggest to use this:
https://developer.mozilla.org/en-US/docs/Mozilla/Tech/XPCOM/Reference/Interface/nsITextInputProcessor
I tried to take a stab at that a long time ago, and ended up not having the time or energy to follow through with it. Also since after FF48, this driver will essentially be dead and GeckoDriver will need to be used in the future, I didn't think it seemed worth it to invest the time in it.
Also, the fix would not be in java at all, purely JavaScript.
from selenium.
@lukeis thanks for the response
it's not only firefox
I'm having the same issue in chrome
do u have an estimation on how much time it will take to fix?
and if so, could u point me where to begin with it?
from selenium.
'less easy' aka 'non-trivial', it will take a decent amount of time... where decent is quite a few hours for someone who knows what they are doing.
This bug has been entirely for firefox and references to firefox driver code. Chrome has a different code path and you'd need to first start looking at the chromium source to figure out how it's exactly doing the sendKey event(s).
Here's where I've been able to trace the function call to in chromedriver down to creating events:
https://cs.chromium.org/chromium/src/chrome/test/chromedriver/key_converter.cc?rcl=1468912738&l=193
And then it sends those key events:
https://cs.chromium.org/chromium/src/chrome/test/chromedriver/chrome/web_view_impl.cc?rcl=1468912738&l=400
Which is a remote request to the Chrome Inspector... to which I don't know exactly where that source code is, but somewhere in the chromium repo.
hope you're good at C? :)
from selenium.
btw "quite a few" is a gross understatement, it could take someone days (for firefox), chrome may be less (in the range of hours), since it doesn't likely require the extensive refactor of the mechanism that is creating the key events
from selenium.
Thanks for the pointers.
Sadly I don't know any C
maybe it's better to close this issue?
On Tue, Jul 19, 2016 at 5:58 PM, Luke Inman-Semerau <
[email protected]> wrote:
btw "quite a few" is a gross understatement, it could take someone days
(for firefox), chrome may be less (in the range of hours), since it doesn't
likely require the extensive refactor of the mechanism that is creating the
key events—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#386 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AGpADD7qAq7Gz9L_FzdNNL2BwVVob4Vvks5qXPQKgaJpZM4D2auh
.
from selenium.
I intend to close this issue (and really all FirefoxDriver issues logged against this repo) when GeckoDriver is the default and Firefox no longer works with the FirefoxDriver here.
from selenium.
It's time to close this issue, geckodriver is the default and it passes this test.
from selenium.
Related Issues (20)
- [🐛 Bug]: Selenium manger in offline mode emits a warning which it should not do. HOT 2
- code issue[🐛 Bug]: HOT 2
- [🚀 Feature]: execute_cdp_cmd allow retrieval of all requests HOT 3
- [🐛 Bug]: (chromedriver.close Excpetion) Я хотел бы сказать что я ошибся чучуть. Ошибка произошла в момент выхода а не перезагрузки xpath... это было намеренное закрытие chromedriver через объект root cd (chrome driver), так как мой проект отработал. И! Браузер когда я пришёл к компьютеру был открыт но объект сайта не был получен, не знаю почему так произошло HOT 3
- [🐛 Bug]: close method on Mobile Browser iPhone15/Safari does not close the browser window HOT 2
- [🐛 Bug]: PrintsPage method fails on Safari HOT 3
- [🐛 Bug]: deleteAllCookies method fails on Safari Driver HOT 3
- [🐛 Bug]: setWindowRect:true fails when passed to Browser Drivers HOT 2
- [🐛 Bug]: Not able to view Grid Dashboard with version 4.19.1 HOT 5
- [🐛 Bug]: Socks5 Proxy (Chrome) HOT 2
- [🐛 Bug]: Selenium is not opening chrome version 123.0.6312.124; error: could not start a new session. Response code: 500. Message: Session not created: This version of chromedriver only supports chrome version 114 HOT 4
- I have tried to run a node on the same machine as the hub and it connects fine HOT 1
- [🐛 Bug]: Grid endpoints fail to delete or drain a registered node HOT 4
- [🐛 Bug]: [Guice/ErrorInjectingConstructor]: SessionNotCreatedException: Could not start a new session. Response code 500. Message: session not created: Chrome failed to start: exited normally. HOT 3
- [🐛 Bug]: Click() function is not working while running the code but in debug mode it is working fine. HOT 17
- [🐛 Bug]: Selenium 4 grid execution shows different user's execution even when clicked using the correct session name HOT 3
- [🐛 Bug]: Selenium 4.4.0 | Chrome123.0.6312.106 | JDK 17|Timed out waiting for driver server to stop HOT 2
- [🐛 Bug]: driver.quit doesn't kill all Chrome processes HOT 14
- [🐛 Bug]: .NET LogFileHandler not writing any logs HOT 6
- [🐛 Bug]: Delete Cookies removes all cookies with the same name instead of deleting a provided Cookie HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from selenium.