Skip to content
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

et_text enabled #35

Merged
merged 3 commits into from
Mar 27, 2024
Merged

et_text enabled #35

merged 3 commits into from
Mar 27, 2024

Conversation

Lenny2Liu
Copy link
Contributor

No description provided.

@Lenny2Liu Lenny2Liu requested a review from vyokky March 24, 2024 15:51
else:
args = {"text": args_dict["text"]}
raise ValueError(f"INPUT_TEXT_API {configs['INPUT_TEXT_API']} not supported")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If config not correct, it should use a default method name. Choose one that is more general

result = self.atomic_execution(self.control, method_name, args)
else:
result = self.set_text(method_name, args)
if configs["INPUT_TEXT_ENTER"] and method_name in ["type_keys", "set_edit_text", "set_text"]:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is set_edit_text still take effect in the list?

if args["text"] not in self.control.window_text():
raise Exception(f"Failed to use set_text: {args['text']}")
return result
except:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it possible to merge two func into one?

@vyokky vyokky merged commit 45e77ed into pre-release Mar 27, 2024
1 check passed
@Lenny2Liu Lenny2Liu deleted the set_text_enable branch April 16, 2024 08:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants