File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ def on_release(key):
33
33
34
34
# Get the status of the letters in the wordle
35
35
def get_row_results (game_row ):
36
- tiles = game_row .find_elements (By .CLASS_NAME , "Tile-module_tile__UWEHN " )
36
+ tiles = game_row .find_elements (By .XPATH , ".//*[contains(@class, ' Tile-module_tile__')] " )
37
37
row_results = []
38
38
res_to_int = {
39
39
"correct" : 1 ,
@@ -167,7 +167,7 @@ def main():
167
167
time .sleep (1 )
168
168
169
169
# Get the game rows
170
- game_rows = browser .find_elements (By .CLASS_NAME , 'Row-module_row__pwpBq' )
170
+ game_rows = browser .find_elements (By .XPATH , "//*[contains(@class, 'Row-module_row__')]" )
171
171
172
172
# Enter words until the game is over or the wordle is solved
173
173
for i in range (guesses_left , 0 , - 1 ):
You can’t perform that action at this time.
0 commit comments