From 4b71a38e12bdd43f03bfad9dc72b94d55e55b381 Mon Sep 17 00:00:00 2001 From: mario872 <106939571+mario872@users.noreply.github.com> Date: Thu, 4 Apr 2024 20:09:37 +1100 Subject: [PATCH] Fixed issue where login would fail --- sentralify/scrapers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sentralify/scrapers.py b/sentralify/scrapers.py index 776f0fa..bf6457a 100644 --- a/sentralify/scrapers.py +++ b/sentralify/scrapers.py @@ -138,7 +138,7 @@ def login(self, browser): page.get_by_placeholder("Enter your password").fill(self.config['password']) page.get_by_role("button", name="Sign in").click() - page.get_by_role("button", name="No").click() + page.get_by_role("button", name="Yes").click() try: # We expect that we will be logged into Sentral by now expect(page).to_have_title(re.compile(f"Portal - {self.config['username'].split('.')[0].capitalize()}", re.IGNORECASE), timeout=3000)