Skip to content

Commit

Permalink
elements inside svg attribute requires Selenium XPath using
Browse files Browse the repository at this point in the history
*[name='XXX'] pattern
  • Loading branch information
apupier committed Nov 27, 2023
1 parent 852e9cc commit 53702fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions it-tests/BasicFlow.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,10 +146,10 @@ async function addActiveMQStep(driver: WebDriver) {

async function checkStepWithTestIdPresent(driver: WebDriver, testId: string) {
console.log(`check step starts with testId = ${testId}`);
console.log(`//g[starts-with(@data-testid, '${testId}')]`);
await driver.wait(
until.elementLocated(By.xpath(`//g[starts-with(@data-testid, '${testId}')]`)
until.elementLocated(By.xpath(`//[name='g' and starts-with(@data-testid, '${testId}')]`)
));
console.log(`step with id ${testId} found`);
}

async function checkIntegrationNameInTopBarLoaded(driver: WebDriver, name: string) {
Expand Down

0 comments on commit 53702fc

Please sign in to comment.