From abf357a693241a815f64b977f177e96dd259a641 Mon Sep 17 00:00:00 2001 From: Noah Stephen Haskell Date: Wed, 4 Sep 2024 14:52:25 -0500 Subject: [PATCH] Update tests to properly find the system button --- tests/tests.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/tests.py b/tests/tests.py index acd2d5cb..1e90cac7 100644 --- a/tests/tests.py +++ b/tests/tests.py @@ -58,8 +58,8 @@ def load_system(self, system_name): # Load the 1st system. import_buttons = self.wait.until(lambda drv: - drv.find_elements(By.CSS_SELECTOR, - "#mainContent > fieldset > div > div > div:nth-child(1)")) + drv.find_elements(By.XPATH, + "//*[@id='mainContent']/div[1]/div[@class='item']")) if len(import_buttons) > 0: print("Loading the first game system") import_buttons[0].click()