macaca icon indicating copy to clipboard operation
macaca copied to clipboard

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

Open zhechengmao opened this issue 5 years ago • 5 comments

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

zhechengmao avatar May 10 '19 09:05 zhechengmao

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

macaca-bot avatar May 10 '19 09:05 macaca-bot

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

engigu avatar May 10 '19 09:05 engigu

This is the translated issue comment: @EngiGu


Try it with full xpath and have encountered the same problem

macaca-bot avatar May 10 '19 09:05 macaca-bot

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

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

zhechengmao avatar May 10 '19 09:05 zhechengmao

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

macaca-bot avatar May 10 '19 09:05 macaca-bot