Skip to content

Commit

Permalink
Update tests to properly find the system button
Browse files Browse the repository at this point in the history
  • Loading branch information
nstephenh committed Sep 4, 2024
1 parent fe7ed35 commit abf357a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit abf357a

Please sign in to comment.