mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
[FTR] Add getAttribute helpers to TestSubjects (#14340)
This commit is contained in:
parent
8cde5ef98e
commit
57c25307b5
1 changed files with 13 additions and 0 deletions
|
@ -62,6 +62,19 @@ export function TestSubjectsProvider({ getService }) {
|
|||
});
|
||||
}
|
||||
|
||||
async getAttributeAll(selector, attribute) {
|
||||
return await this._mapAll(selector, async (element) => {
|
||||
return await element.getAttribute(attribute);
|
||||
});
|
||||
}
|
||||
|
||||
async getAttribute(selector, attribute) {
|
||||
return await retry.try(async () => {
|
||||
const element = await this.find(selector);
|
||||
return await element.getAttribute(attribute);
|
||||
});
|
||||
}
|
||||
|
||||
async setValue(selector, text) {
|
||||
return await retry.try(async () => {
|
||||
const element = await this.find(selector);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue