Update XPath syntax
This commit is contained in:
parent
c90e11ea3d
commit
31fae36caa
|
@ -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' } );
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue