Skip to content

Commit

Permalink
fixed clicking
Browse files Browse the repository at this point in the history
  • Loading branch information
Potajito committed Sep 25, 2024
1 parent c44ac29 commit 8bc9275
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/backloggd_scrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ def log_game_web(playwright:Playwright, bl_user: str, bl_password: str, game_nam
#today_cell = page.query_selector('//td[contains(@class, "fc-today")]') # xpath version
log.debug(today_cell.inner_html())
today_cell.click(force=True)
new_span = page.wait_for_selector('span[class="fc-title"]', state='visible')
new_span.click()
#new_span = page.wait_for_selector('span[class="fc-title"]', state='visible')
#new_span.click()
minutes_field = page.wait_for_selector('input[id="play_date_minutes"]', state='visible')
minutes_field.fill(str(time))
page.click('button[class="btn btn-main py-1"]')
Expand Down

0 comments on commit 8bc9275

Please sign in to comment.