mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-06-30 18:15:11 +00:00
Retrieve href attribute of hyperlink (#5541)
This commit is contained in:
parent
c91458df79
commit
22d2a52f68
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user