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

某些应用编辑框可以点开输入法但无法输入 #4

Open
baofengqqwwff opened this issue Jul 4, 2021 · 12 comments
Open

某些应用编辑框可以点开输入法但无法输入 #4

baofengqqwwff opened this issue Jul 4, 2021 · 12 comments

Comments

@baofengqqwwff
Copy link

invalid element state: Cannot set the element to 'zasxax'. Did you interact with the correct element?

@electricbubble
Copy link
Owner

  • 可能和 输入法 有关

    如果使用第三方的输入法,有可能出现无法输入的情况

  • 也可能和 输入框控件 有关

    有些 输入框控件 可能是被改动过,含有多层可选择输入


如果没有上面提到的可能,或许可以试一下 PressKeyCode ?

driver.PressKeyCode(KCExplorer, KMEmpty)

@baofengqqwwff
Copy link
Author

baofengqqwwff commented Jul 4, 2021 via email

@electricbubble
Copy link
Owner

🤔是新版全部 编辑框 都不可以?

还是只是部分特定的 编辑框?

@baofengqqwwff
Copy link
Author

baofengqqwwff commented Jul 4, 2021 via email

@baofengqqwwff
Copy link
Author

baofengqqwwff commented Jul 4, 2021 via email

@electricbubble
Copy link
Owner

找不到元素?

有什么报错吗?

@baofengqqwwff
Copy link
Author

baofengqqwwff commented Jul 4, 2021 via email

@baofengqqwwff
Copy link
Author

baofengqqwwff commented Jul 4, 2021 via email

@electricbubble
Copy link
Owner

这个报错提示看上去是正常执行了 寻找元素 的操作

报错信息由 uia2 提供的


panic: runtime error: index out of range [2] with length 0

这个 panic 看上去是我没正确处理

可以提供导致报错的相关代码吗?或更详细的 panic堆栈信息

@baofengqqwwff
Copy link
Author

baofengqqwwff commented Jul 4, 2021 via email

@electricbubble
Copy link
Owner

electricbubble commented Jul 4, 2021

没有例子。。我就一个 Android 设备

还是以前的小伙伴提供的。。。
简单的就直接把多个设备的 driver 统一遍历执行就好了

@baofengqqwwff
Copy link
Author

baofengqqwwff commented Jul 4, 2021 via email

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