| Server IP : 202.61.199.114 / Your IP : 216.73.217.139 Web Server : nginx/1.22.1 System : Linux de.arni-solutions.de 6.1.0-49-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.174-1 (2026-05-26) x86_64 User : web20 ( 1018) PHP Version : 8.4.23 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /proc/3951573/cwd/tmp/ |
Upload File : |
from playwright.sync_api import sync_playwright
URL='https://seaside.pacim.de/checkin.php?b=115156&h=fcfd0fc0663af8e93edbbeeea0b80abd'
def active(pg): return pg.eval_on_selector('.tabbar .tab.active','e=>e.getAttribute("data-tab")')
def tx(pg): return pg.eval_on_selector('#ci-track','e=>e.style.transform')
def swipe(pg, x0, x1, y=380):
pg.mouse.move(x0, y); pg.mouse.down()
steps=10
for i in range(1, steps+1):
pg.mouse.move(x0 + (x1-x0)*i/steps, y + (2 if i%2 else -2))
pg.mouse.up(); pg.wait_for_timeout(450)
with sync_playwright() as pw:
b=pw.chromium.launch()
pg=b.new_page(viewport={'width':400,'height':820}, device_scale_factor=2)
pg.goto(URL, wait_until='networkidle'); pg.wait_for_timeout(700)
print('start active:', active(pg), tx(pg))
swipe(pg, 320, 40); print('swipe left -> ', active(pg), tx(pg))
swipe(pg, 320, 40); print('swipe left -> ', active(pg), tx(pg))
swipe(pg, 60, 340); print('swipe right-> ', active(pg), tx(pg))
# small drag (below threshold) should snap back
swipe(pg, 200, 170); print('tiny drag -> ', active(pg), tx(pg))
b.close()