-
Notifications
You must be signed in to change notification settings - Fork 764
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
Should have an ActionChain click for Click Element keyword #1463
Comments
Hmmm, click at coordinates keyword has a special purpose, but I don't quite understand what problem you are trying to solve. Could you example clarify the why |
My problem is that, for some reason due to asynchronous calls and promises, I'm unable to click on elements in my Chromium-based application using selenium's .click() function. It gives me this error: Unfortunately, that's the method that |
It would be good to investigate why that happens. Perhaps there's a bug somewhere that could be fixed. If not, there still are other solutions than adding a new keyword:
|
That's fair. In lieu of finding the cause of the failure, since that might take some time, is there one of those options you think might be a good stop-gap? I feel like using action chains if |
I have a branch where I created a helper function which centralizes click actions (like in |
Hmmm, that is actually quite a difficult question. Usually we don't do retry (expect in the I am somewhat leaning towards that configurable option would be better for users. Because it's explicit what keywords will do and easier users to control. Someone most likely wants to keywords to try clicking only one time and fail. |
Good point that clicking twice may not always be desirable and thus configuration option sounds better. Even better, of course, if the reason for this behavior was found. If a configuration option is added, I'd say it's best to add it only to |
So we agree that keyword signature will change to: |
That can be considered ugly and hackish, but perhaps practicality beats purity. |
Agreed! A bit hackish, maybe, but it'll also be nice just to have the option since the to types of clicks clearly exercise the code in different ways. |
As it is now, the only way to use a native ActionChain-based click on an element is by using the
Click Element At Coordinates
keyword. It would be nice to not need to specify coordinates and just do a native click on the center of a given element. This has been implemented in PR#1462.The text was updated successfully, but these errors were encountered: