From 63a854867bfe06039c8b12c17b7add182ae074da Mon Sep 17 00:00:00 2001 From: Edward Betts Date: Sun, 3 Sep 2023 10:47:48 -0400 Subject: [PATCH] New return date and bug fix. --- check.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/check.py b/check.py index 7f41650..d5e3158 100755 --- a/check.py +++ b/check.py @@ -73,8 +73,8 @@ def run(playwright: Playwright) -> None: page.get_by_role("cell", name="29").click() page.get_by_role("textbox", name="Return").click() - page.get_by_role("row", name="September 2023").get_by_role("cell").nth(2).click() - page.get_by_role("cell", name="6", exact=True).click() + page.get_by_role("row", name="September 2023").get_by_role("cell").nth(1).click() + page.get_by_role("cell", name="13", exact=True).click() page.get_by_role("button", name="Search and book").click() page.get_by_label("Enter your vehicle registration").fill("KE69HRR") @@ -89,9 +89,7 @@ def run(playwright: Playwright) -> None: page.locator("#slots div").filter(has_text="12:00To").locator("span").click() page.locator("div:nth-child(5) > .times > div:nth-child(2) > .radio-button").click() - page.locator( - "div:nth-child(17) > .d-flex > div > .body > .radio-button" - ).first.click() + page.locator(".ticket:visible").first.click() page.get_by_role("button", name="Confirm and choose return ticket").click() expect(page.get_by_text(return_label)).to_be_visible()