Update XPath syntax

This commit is contained in:
Lucas Bustamante 2022-02-28 17:41:00 -03:00
parent c90e11ea3d
commit 31fae36caa
1 changed files with 2 additions and 1 deletions

View File

@ -77,7 +77,8 @@ const merchant = {
} ); } );
// Confirm logout using XPath, which works on all languages. // Confirm logout using XPath, which works on all languages.
await expect( page ).toClick( '//a[contains(@href,\'action=logout\')]' ); const elements = await page.$x('//a[contains(@href,\'action=logout\')]')
await elements[0].click()
await page.waitForNavigation( { waitUntil: 'networkidle0' } ); await page.waitForNavigation( { waitUntil: 'networkidle0' } );
}, },