From 97e71fc637127951f5dfe2466389f29f850b0806 Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Sat, 11 Feb 2023 09:42:44 +0100 Subject: [PATCH] better xpath --- test/test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test.js b/test/test.js index 9adce51..d8b2106 100755 --- a/test/test.js +++ b/test/test.js @@ -55,7 +55,7 @@ describe('Application life cycle test', function () { if (mode === 'none') { await browser.get('https://' + app.fqdn); await browser.sleep(2000); - await browser.findElement(By.xpath('//button/span[contains(text(), "Create account")]')).click(); + await browser.findElement(By.xpath('//div[@class="sign-in-banner"]/descendant::button/span[contains(text(), "Create account")]')).click(); await visible(By.xpath('//span[contains(text()[2], "is currently not possible")]')); } else if (mode === 'open') { await browser.get('https://' + app.fqdn + '/auth/sign_up');