We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b509def commit b13851aCopy full SHA for b13851a
1 file changed
wordle_solver/wordle_solver.py
@@ -33,7 +33,7 @@ def on_release(key):
33
34
# Get the status of the letters in the wordle
35
def get_row_results(game_row):
36
- tiles = game_row.find_elements(By.CLASS_NAME, "Tile-module_tile__UWEHN")
+ tiles = game_row.find_elements(By.XPATH, ".//*[contains(@class, 'Tile-module_tile__')]")
37
row_results = []
38
res_to_int = {
39
"correct": 1,
@@ -167,7 +167,7 @@ def main():
167
time.sleep(1)
168
169
# Get the game rows
170
- game_rows = browser.find_elements(By.CLASS_NAME, 'Row-module_row__pwpBq')
+ game_rows = browser.find_elements(By.XPATH, "//*[contains(@class, 'Row-module_row__')]")
171
172
# Enter words until the game is over or the wordle is solved
173
for i in range(guesses_left, 0, -1):
0 commit comments