mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
Retrieve href attribute of hyperlink (#5541)
This commit is contained in:
@@ -29,6 +29,10 @@ export class HyperlinkWidgetPage {
|
||||
return this.formFields.getFieldText(fieldId, this.fieldLocator);
|
||||
}
|
||||
|
||||
async getFieldHref(fieldId): Promise<string> {
|
||||
return this.formFields.getWidget(fieldId).element(this.fieldLocator).getAttribute('href');
|
||||
}
|
||||
|
||||
async getFieldLabel(fieldId): Promise<string> {
|
||||
const label = element.all(by.css(`adf-form-field div[id="field-${fieldId}-container"] label`)).first();
|
||||
return BrowserActions.getText(label);
|
||||
|
Reference in New Issue
Block a user