diff --git a/projects/aca-testing-shared/src/components/toolbar/toolbar.ts b/projects/aca-testing-shared/src/components/toolbar/toolbar.ts
index 307caa3e4..7fbd056ab 100755
--- a/projects/aca-testing-shared/src/components/toolbar/toolbar.ts
+++ b/projects/aca-testing-shared/src/components/toolbar/toolbar.ts
@@ -23,7 +23,7 @@
* along with Alfresco. If not, see .
*/
-import { ElementFinder, by, browser, By } from 'protractor';
+import { ElementFinder, by, browser, By, element } from 'protractor';
import { BrowserActions } from '@alfresco/adf-testing';
import { Menu } from '../menu/menu';
import { Component } from '../component';
@@ -33,7 +33,7 @@ export class Toolbar extends Component {
menu = new Menu();
buttons = this.allByCss('button');
- shareButton = this.byId('share-action-button');
+ shareButton = element(By.css('button[data-automation-id="share-action-button"]'));
viewButton = this.byCss(`.mat-icon-button[title='View']`);
downloadButton = this.byCss(`.mat-icon-button[title='Download']`);
editFolderButton = this.byId('app.toolbar.editFolder');
@@ -74,7 +74,7 @@ export class Toolbar extends Component {
}
async openMoreMenu(): Promise {
- const btnMoreActions = browser.element(By.css('button[id="app.toolbar.more"]'));
+ const btnMoreActions = element(By.css('button[id="app.toolbar.more"]'));
await btnMoreActions.isPresent();
await BrowserActions.click(btnMoreActions);