我只在Chrome中看到这一点.
完整的错误消息显示:
"org.openqa.selenium.WebDriverException:元素在点(411,675)处不可点击.其他元素将收到点击:..."
"将接收点击"的元素位于相关元素的一侧,而不是位于其上方且不与其重叠,而不是在页面上移动.
我试过添加一个偏移量,但这也不起作用.该项目位于显示的窗口上,无需滚动.
嗨,我在使用基本量角器测试时遇到一些麻烦.
我的设置:
量角器conf.json:
"use strict";
exports.config = {
specs: '../E2ETests/**/*.js',
chromeOnly: true,
getPageTimeout: 30000,
allScriptsTimeout: 30000
}
Run Code Online (Sandbox Code Playgroud)考试:
"use strict";
describe('When clicking should add stuff', function () {
var ptor;
beforeEach(function () {
browser.get('https://localhost/myApp');
ptor = protractor.getInstance();
});
it('add stuff', function () {
// If I comment this, the test pass.
element(by.id('add-stuff-button')).click();
// This does not matter fails on the line above..
expect(browser.getTitle()).toBeDefined();
});
});
Run Code Online (Sandbox Code Playgroud)
错误:
UnknownError: unknown error: Element is not clickable at point (720, 881). …Run Code Online (Sandbox Code Playgroud)