Skip to content

Commit

Permalink
test.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Dreamlinerm committed Aug 24, 2023
1 parent 60c7df9 commit 3694e87
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ def Amazon_Prime():
script = "document.querySelector('" + AmazonVideoClass + "').currentTime = 2463"
driver.execute_script(script)

wait = WebDriverWait(driver, timeout=8)
wait = WebDriverWait(driver, timeout=10)
try:
wait.until(lambda driver: video.get_property("currentTime") < 10)
print("✅: Skip Credits")
Expand Down Expand Up @@ -192,7 +192,7 @@ def Amazon_Ad():
script = "document.querySelector('" + AmazonVideoClass + "').currentTime = 719"
driver.execute_script(script)

wait = WebDriverWait(driver, timeout=5)
wait = WebDriverWait(driver, timeout=10)
try:
wait.until(lambda driver: video.get_property("currentTime") > 719)
print("✅: Skip Ad")
Expand Down

0 comments on commit 3694e87

Please sign in to comment.