| 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/3951572/root/tmp/ |
Upload File : |
from playwright.sync_api import sync_playwright
TOK="b12a0ddd1501375dfbda804d"; url="https://seaside.pacim.de/checkin.php?t=%s&b=115156"%TOK
with sync_playwright() as p:
b=p.chromium.launch(); pg=b.new_context(viewport={"width":440,"height":900},device_scale_factor=2).new_page()
pg.goto(url, wait_until="networkidle"); pg.wait_for_timeout(1200)
n=pg.eval_on_selector_all('#ci-ph-grid .ph-thumb img','imgs=>imgs.map(i=>i.naturalWidth)')
print("thumb naturalWidths:", n) # >0 means loaded
pg.screenshot(path="/tmp/gallery.png")
# open lightbox, check buttons
pg.eval_on_selector('#ci-ph-grid .ph-thumb','e=>e.click()'); pg.wait_for_timeout(600)
print("dl visible:", pg.is_visible('#ci-lb-dl'), "del visible:", pg.is_visible('#ci-lb-del'))
print("lb img naturalWidth:", pg.eval_on_selector('#ci-lb-img','e=>e.naturalWidth'))
# delete this image
pg.on("dialog", lambda d: d.accept())
cnt_before=pg.inner_text('#ci-lb-pos')
pg.click('#ci-lb-del'); pg.wait_for_timeout(1500)
print("after delete: lightbox open?", pg.is_visible('#ci-lb'), "| gallery count:", pg.inner_text('#ci-ph-count'))
b.close()