From 3ffc653f2cf20aa7c3c74b5af8e98c482eb01613 Mon Sep 17 00:00:00 2001 From: PAN Lei Date: Sat, 18 Feb 2023 13:59:00 +0100 Subject: [PATCH] specifiy the button --- src/workers/CommandorPage.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/workers/CommandorPage.js b/src/workers/CommandorPage.js index a47377e..63b16d6 100644 --- a/src/workers/CommandorPage.js +++ b/src/workers/CommandorPage.js @@ -114,7 +114,7 @@ class CommandorPage { // log(e) // } try { - this.page.locator(':nth-match(:text("Online Appointment"), 1)').click() + this.page.locator(':nth-match(:text("Paris Online Appointment"), 1)').click() } catch (e) { log(e) this.isTerminated = true