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

针对系统级的弹框,代码中采用elementByName.click报错 #924

Open
zhechengmao opened this issue May 10, 2019 · 5 comments
Open
Assignees

Comments

@zhechengmao
Copy link

image
代码:
//点击确认
driver.elementByName(Config.Exit_Login_Confirm).click();
日志:
image

@macaca-bot
Copy link

This is the translated issue:


For system-level bullets, the code is identified by elementByName.click in the code.

!image
Code:
//Click to confirm
driver.elementByName(Config.Exit_Login_Confirm).click();
Log:
image

@engigu
Copy link

engigu commented May 10, 2019

用完整xpath试试,遇到过一样的问题

@macaca-bot
Copy link

This is the translated issue comment: @engigu


Try it with full xpath and have encountered the same problem

@zhechengmao
Copy link
Author

用完整xpath试试,遇到过一样的问题

使用xpath倒是可以点击,但是也会报错,只不过错误是另外一种,如下:
image

@macaca-bot
Copy link

This is the translated issue comment: @zhechengmao


Try with the full xpath and have encountered the same problem

Using xpath can be clicked, but it will also report an error, but the error is another, as follows:
!image

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

4 participants