mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-10-01 14:41:32 +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);
|
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> {
|
async getFieldLabel(fieldId): Promise<string> {
|
||||||
const label = element.all(by.css(`adf-form-field div[id="field-${fieldId}-container"] label`)).first();
|
const label = element.all(by.css(`adf-form-field div[id="field-${fieldId}-container"] label`)).first();
|
||||||
return BrowserActions.getText(label);
|
return BrowserActions.getText(label);
|
||||||
|
Reference in New Issue
Block a user