Skip to content

Commit

Permalink
check any param and role tooltip
Browse files Browse the repository at this point in the history
  • Loading branch information
jonycoo committed Nov 3, 2023
1 parent 60aaa7d commit e5531ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/features/step_definitions/stepdefs.js
Original file line number Diff line number Diff line change
Expand Up @@ -818,7 +818,7 @@ Then('So on element {string} the css property {string} is {string}', async funct

Then('So the element {string} has the tool-tip {string}', async function toolTipIs(element, value) {
const world = this;
const identifiers = [`//*[contains(text(),'${element}')]`, `//*[@id='${element}']`, `//*[contains(@*, '${element}')]`, `//*[@*='${element}']`, `//*[contains(@id, '${element}')]`, `${element}`];
const identifiers = [`//*[contains(text(),'${element}')]`, `//*[@id='${element}']`, `\\*[@*='${element} and @role=tooltip]`, `//*[contains(@*, '${element}')]`, `//*[@*='${element}']`, `//*[contains(@id, '${element}')]`, `${element}`];
const promises = [];
for (const idString of identifiers) promises.push(driver.wait(until.elementLocated(By.xpath(idString)), searchTimeout, `Timed out after ${searchTimeout} ms`, 100));
await Promise.any(promises)
Expand Down

0 comments on commit e5531ce

Please sign in to comment.