mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
Add method for selecting row with CMD
This commit is contained in:
@@ -84,4 +84,10 @@ export class DataTableItem {
|
||||
const locator = `//div[@title="${column.columnName}"]` + column.createLocator(columnValue) + `//ancestor::adf-datatable-row[contains(@class, 'is-selected')]`;
|
||||
await BrowserVisibility.waitUntilElementIsNotVisible(element(by.xpath(locator)));
|
||||
}
|
||||
|
||||
async selectRowWithKeyboard(columnName: string, columnValue: string): Promise<void> {
|
||||
await browser.actions().sendKeys(protractor.Key.COMMAND).perform();
|
||||
await this.selectRow(columnName, columnValue);
|
||||
await browser.actions().sendKeys(protractor.Key.NULL).perform();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user