我在测试 Bootstrap 模式时遇到问题。
场景:
- 单击按钮以显示模式
- 模态主体包含按钮列表
- 当我点击其中一个时,不会执行该操作
Protractor 代码:
element(by.model('$root.project.modules.manufacturer.name')).click();
element.all(by.css('[ng-click="thisManuf(manufactur.name,manufactur.id);$hide(); "]')).get(0).click();
错误跟踪:
UnknownError: unknown error: Element is not clickable at point (584, 170). Other element would receive the click: ...
请帮忙
最佳答案
通过 exact repeater 查找按钮相反:
var buttons = element.all(by.exactRepeater("manufactur in manufacturs"));
buttons.first().click();
关于javascript - Bootstrap 模态 Protractor 测试,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31612558/