File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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" )
You can’t perform that action at this time.
0 commit comments