I am attempting to interact with an element using protractor but encountering the following error
(node:9208) UnhandledPromiseRejectionWarning: ElementNotVisibleError: element not interactable
(Session information: chrome=69.0.3497.92)
(Driver information: chromedriver=2.42.591088 (7b2b2dca23cca0862f674758c9a3933e685c27d5), platform=Windows NT 6.1.7601 SP1 x86_64)
at Object.checkLegacyResponse (........\node_modules\selenium-webdriver\lib\error.js:546:15)
at parseHttpResponse (........\node_modules\selenium-webdriver\lib\http.js:509:13)
at doSend.then.response (........\node_modules\selenium-webdriver\lib\http.js:441:30)
at process._tickCallback (internal/process/next_tick.js:68:7)Error
at ElementArrayFinder.applyAction_ (........\node_modules\protractor\built\element.js:459:27)
at ElementArrayFinder.(anonymous function).args [as click] (........\node_modules\protractor\built\element.js:91:29)
at ElementFinder.(anonymous function).args [as click] (........\node_modules\protractor\built\element.js:831:22)
at selenMethods.clickElement (........\folders\utils\SelenMethods.js:49:26)
at ........\folders\pages\homePage.js:28:29
at process._tickCallback (internal/process/next_tick.js:68:7)
Below is the snippet of HTML Code
<a href="#inviteUser" id="menuBtnAdduser" class="list-group-item list-group-child-item close-menu-item list-item-heading ng-scope" translate="templates.usersTable.addUser" xpath="1"><span class="ng-scope">Invite new user</span></a>
Here is the protractor script used to interact with the element
var EC = protractor.ExpectedConditions;
browser.wait(EC.elementToBeClickable(elemen), 4000);
element(by.xpath("//a[@id='menuBtnAdduser']/span[contains(text(),'Invite new user')]"));