try to click on the 3ird btn
This commit is contained in:
@@ -102,15 +102,17 @@ class CommandorPage {
|
||||
this.isTerminated = true
|
||||
}
|
||||
try {
|
||||
this.page.locator('button:has-text("Tout accepter")').click()
|
||||
} catch (e) {
|
||||
log(e)
|
||||
}
|
||||
try {
|
||||
this.page.locator('button:has-text("Accept all")').click()
|
||||
if (this.page.url().includes("google"))
|
||||
this.page.locator('button >> nth=3').click()
|
||||
// this.page.locator('button:has-text("Tout accepter")').click()
|
||||
} catch (e) {
|
||||
log(e)
|
||||
}
|
||||
// try {
|
||||
// this.page.locator('button:has-text("Accept all")').click()
|
||||
// } catch (e) {
|
||||
// log(e)
|
||||
// }
|
||||
try {
|
||||
this.page.locator(':nth-match(:text("Online Appointment"), 1)').click()
|
||||
} catch (e) {
|
||||
|
||||
Reference in New Issue
Block a user