Skip to content

Commit 03c6b13

Browse files
authored
Update websitebotex.py
1 parent b4699a0 commit 03c6b13

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/websitebotex.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,10 @@ def kill_chrome():
102102
wait = WebDriverWait(driver, 30)
103103
# Ensure the button is visible
104104
#startworld = wait.until(EC.visibility_of_element_located((By.XPATH, "//button[contains(@class, 'btn-primary')]")))
105-
startworld = driver.find_element(By.CSS_SELECTOR, "button.btn-primary")
105+
startworld = driver.find_element(By.CLASS_NAME, "btn btn-primary")
106106

107107
# Now ensure it’s clickable
108-
startworld = wait.until(EC.element_to_be_clickable((By.CSS_SELECTOR, "button.btn-primary")))
108+
startworld = wait.until(EC.element_to_be_clickable((By.CLASS_NAME, "btn btn-primary")))
109109
driver.execute_script("arguments[0].scrollIntoView(true);", startworld)
110110
driver.execute_script("arguments[0].click();", startworld)
111111
print("Clicked start")

0 commit comments

Comments
 (0)