| 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
cookies=[]
for ln in open('/tmp/cj.txt'):
if ln.startswith('#') or not ln.strip(): continue
p=ln.rstrip('\n').split('\t')
if len(p)>=7: cookies.append({'name':p[5],'value':p[6],'domain':p[0].lstrip('.'),'path':p[2]})
with sync_playwright() as pw:
b=pw.chromium.launch(); ctx=b.new_context(viewport={'width':1300,'height':1000}); ctx.add_cookies(cookies)
pg=ctx.new_page(); pg.goto('https://seaside.pacim.de/', wait_until='networkidle'); pg.wait_for_timeout(1500)
info=pg.evaluate('''()=>{
const tr=document.querySelector('.cockpit-bookings tbody tr.cp-row');
const a=tr.querySelector('a.cp-rowlink');
const tb=tr.getBoundingClientRect(), ab=a.getBoundingClientRect();
return {
rowW:Math.round(tb.width), rowH:Math.round(tb.height),
linkW:Math.round(ab.width), linkH:Math.round(ab.height),
coversWidth: Math.abs(tb.width-ab.width)<3, coversHeight: Math.abs(tb.height-ab.height)<3,
href:a.getAttribute('href'), isAnchor:a.tagName
};
}''')
print(info)
# right edge cell click target check: element at far-right of row
pt=pg.evaluate('''()=>{
const tr=document.querySelector('.cockpit-bookings tbody tr.cp-row');
const r=tr.getBoundingClientRect();
const el=document.elementFromPoint(r.right-30, r.top+r.height/2);
return {tag:el.tagName, cls:el.className, isLink: !!el.closest('a.cp-rowlink')};
}''')
print('far-right hit:', pt)
b.close()