Skip to content

Conversation

@Lenny2Liu
Copy link
Contributor

No description provided.

@Lenny2Liu Lenny2Liu requested a review from vyokky March 24, 2024 15:51
args = {"text": args_dict["text"]}
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
@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.

3 participants