-
-
Notifications
You must be signed in to change notification settings - Fork 118
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
click()
doesn't work with download buttons
#198
Comments
Fixed with cc9678c |
is there any way to make click() work with selectors rather than ids? I have an element which I would like to click on but it doesn't have an id. |
Maybe you can try something like?: runjs("$(<'yourselector'>).click()") Just try to be sure that you're not running that on multiple elements, just to avoid unexpected click events somewhere else in the DOM |
The function is meant to be used for action buttons, which always have IDs, and it's kind of a strange thought to click on multiple buttons simultaneously. Therefore it can only be used with an ID. You can use the suggestion above to make your own version of click with some minimal javascript. |
tx, this works. The use case is sorting a DT datatable by a specific column, where there are no IDs but I can identify the correct column with a selector, and DT doesn't provide easy sorting via proxy, so this is really useful. |
click()
works with regular buttons but not with download buttons.Example:
The text was updated successfully, but these errors were encountered: