-
Notifications
You must be signed in to change notification settings - Fork 0
Conversation
My worry is that we end up with something that is unusable in the real world.
Why not? They do reflect the real usage, or? The bigger problem for me is blur and focus, which actually never really happen individually (and which, by the way, are also removed when we remove syn). |
The remaining 4 failures are from the lack of calling For real-world usage, changing the value of text fields doesn't immediately trigger "change" event - the user must somehow unfocus the field first (whereas the test seems to assume that it happens automatically). |
@uuf6429 the various keyboard event never happen individually either. Regarding focus and blur, the big issue with implementing them with syn is that they don't actually focus the element. syn will only simulate the event. It does not change the focused element. |
I didn't mean how they are implemented in syn, but rather from a user/browser perspective. A user should be able to press/hold/release a key, so I don't think it makes sense to remove that functionality (but rather implement it properly, without syn). It might make sense to rethink how that works though, for example releasing a key only makes sense when it has already been pressed.
That doesn't seem entirely true. There's a lot of code going on, but at some point it seems to actually call In conclusion I believe that:
What are your thoughts about #2 (comment)? When we have a solution on that, I could finish this PR and merge it back. |
@uuf6429 Regarding the ability to press keys, a work has been started and stalled about adding a different API allowing to support it in a working way. See minkphp/Mink#772 and minkphp/Mink#831 |
I feel that we are going around in circles.
In all the comments so far, I repeatedly said that syn is not a good solution. We all get that and there's no point in repeating it. From my perspective, a browser user is still able to hold and release keys in different orders, at different times and with repeats - not just pressing them. But this is a different subject that is only relevant to mink as a whole, and not the drivers. So for now we can shelve this discussion. The last remaining problem in this PR is mentioned in #2 (comment) (which is about setting the field value, not key actions). I still don't have a reply or a solution for that.
So the solutions I see here are:
To be clear, the root cause is here: https://github.com/uuf6429/webdriver-classic-driver/pull/2/files#diff-eb40607e253c5d00bff80029635d63de06410cedcea1533338bd514b09873d8eL459 |
Moved to source repo (see minkphp#6) |
No description provided.