Skip to content

Commit

Permalink
added the rightclick method to DataTableComponentPage (Alfresco#4948)
Browse files Browse the repository at this point in the history
  • Loading branch information
gmandakini authored and eromano committed Jul 19, 2019
1 parent c98687d commit fc58f1a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/testing/src/lib/core/pages/data-table-component.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,12 @@ export class DataTableComponentPage {
BrowserVisibility.waitUntilElementIsVisible(element(by.id('adf-context-menu-content')));
}

rightClickOnRowByIndex(index: number) {
const row = this.getRowByIndex(index);
BrowserActions.rightClick(row);
BrowserVisibility.waitUntilElementIsVisible(element(by.id('adf-context-menu-content')));
}

getTooltip(columnName, columnValue) {
return this.getCellElementByValue(columnName, columnValue).getAttribute('title');
}
Expand Down

0 comments on commit fc58f1a

Please sign in to comment.