summary refs log tree commit diff
path: root/main.py
diff options
context:
space:
mode:
authorBaitinq <manuelpalenzuelamerino@gmail.com>2025-01-06 00:35:07 +0100
committerBaitinq <manuelpalenzuelamerino@gmail.com>2025-01-06 00:58:30 +0100
commit425051521bf80c9626187e805e87f80eb88fd127 (patch)
treeac1f279951011f3da74fcfb990203985c9194902 /main.py
parentAccept train time as argv (diff)
downloadrenfe-425051521bf80c9626187e805e87f80eb88fd127.tar.gz
renfe-425051521bf80c9626187e805e87f80eb88fd127.tar.bz2
renfe-425051521bf80c9626187e805e87f80eb88fd127.zip
screenshot when buying ticket
Diffstat (limited to 'main.py')
-rw-r--r--main.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/main.py b/main.py
index e98ce95..49c7970 100644
--- a/main.py
+++ b/main.py
@@ -37,6 +37,8 @@ def main():
 
     main_loop(driver)
 
+    sleep(5)
+    driver.get_screenshot_as_file("bought.png")
     logging.info("TICKET BOUGHT!!")
 
     sleep(999999999)