-
Notifications
You must be signed in to change notification settings - Fork 96
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
Consider adding fill-active-human
#629
Comments
Yeah, if this would be useful to you and others, Dave, feel free to submit a PR! |
* Implement fill-active-human (#629) * Update textarea field fill to use fill-active-human --------- Co-authored-by: Lee Read <[email protected]>
without being familiar with the implementation, i would even expect to just have a single |
IMO, there's no great solution here. First, I tried to make this fit in with Etaoin's existing naming scheme. Etaoin uses |
Sounds good, I don't think we want to rename/rework existing working functionality too much. |
After staring at this some more, I think we should change names from |
but english is my 2nd language too, so my gut-feel is probably not the most representative in such matters.
it's not necessarily a good principle, if it became apparent over time, that the scheme was not the best... |
Problem/Opportunity
Currently, Etaoin has a
fill-active
API for filling in the active element. This is convenient because it automatically queries for the active element. Etaoin also hasfill-human
andfill-human-el
APIs for filling a queried or specified element with human-like behavior (delays, typos, etc.). There is no convenience API for filling the active element while using human-like behavior, however.Proposed Solution
Add a new API,
fill-active-human
that simply queries for the active element and then callsfill-human-el
. Parameters would roughly matchfill-human
/fill-human-el
, but without the query or element to fill (since that will be provided by the active element).Alternative Solutions
The alternative is simply to leave things the way they are.
fill-active-human
is strictly a convenience API offering no fundamentally new functionality that cannot be achieved less-conveniently using existing APIs.Action
I can submit a PR if this sounds like good functionality.
The text was updated successfully, but these errors were encountered: