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

input_text方法,默认清除再输入,建议新增一个方法,不清除,直接在后面输入 #20

Open
FebSun opened this issue Dec 17, 2024 · 1 comment

Comments

@FebSun
Copy link

FebSun commented Dec 17, 2024

nput_text方法,默认清除再输入,建议新增一个方法,不清除,直接在后面输入

@codematrixer
Copy link
Owner

codematrixer commented Dec 18, 2024

控件的input_text方法确实会先清除再输入,这个是agent.so里提供的改不了,但是driver的input_text方法不会先清除。

举例:你可以先点击控件,获取到焦点后,调用drvier的input_text

d(type="SearchField").click()
d.input_text("哈哈哈")

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

No branches or pull requests

2 participants