So I'm receiving this error while testing on Circle, but not while in production. I've npm installed, bower installed, npm updated, bower updated, and npm run update-webdriver.
[chrome #1a] UnknownError: unknown error: Element is not clickable at point (1652, 61). Other element would receive the click: <div class="md-toolbar-tools">...</div>
[chrome #1a] (Session info: chrome=43.0.2357.130)
[chrome #1a] (Driver info: chromedriver=2.14.313457 (3d645c400edf2e2c500566c9aa096063e707c9cf),platform=Linux 3.13.0-76-generic x86_64
I'm not sure why the element wouldn't be clickable while in production but it would be fine for local. I tried adding in some waits but I don't think that's the issue. I've looked at other questions surrounding element not clickable at point but they all seem to be cases where it isn't working at all, not working only in select circumstances.
My page object looks like this:
'use strict';
var myObject = function () {
this.thing1 = element(by.css('md-list'))
this.thing2 = this.thing1.element(by.css('md-list-item'))
this.thing3 = this.thing2.element(by.css('button div div h4'))
this.thing4 = this.thing2.element(by.css('button div md-menu button'))
};
module.exports = new myObject();
and my spec looks like this, and the error is coming on the click line.
describe('Object directive', function () {
var myObject;
browser.driver.manage().window().setSize(1920, 1080);
browser.get('/#/login');
browser.waitForAngular();
myObject = require('./myobject.po.js');
it('should rename', function () {
myObject.thing4.click();
element(by.css('[aria-label=\'Rename Button\']')).click();
element(by.css('input')).clear();
element(by.css('input')).sendKeys('Test Name');
element(by.css('[ng-click="saveName()"]')).click();
expect(myObject.thing3.getText()).toBe('Test Name');
});
it('should delete', function () {
myObject.thing4.click();
element(by.css('[aria-label=\'Delete Button\']')).click();
expect(element(by.css('md-dialog-content div p')).getText()).toBe('Do you want to permanently delete?');
element(by.css('[ng-click="dialog.abort()"]')).click();
});
});