| 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 : /tmp/ |
Upload File : |
from playwright.sync_api import sync_playwright
cookies=[]
for line in open('/tmp/cj.txt'):
if not line.strip() or (line.startswith('#') and not line.startswith('#HttpOnly_')): continue
p=line.rstrip('\n').split('\t')
if len(p)<7: continue
cookies.append({'name':p[5],'value':p[6],'domain':p[0].replace('#HttpOnly_',''),'path':p[2],'secure':p[3]=='TRUE'})
with sync_playwright() as pw:
b=pw.chromium.launch(headless=True,args=['--no-sandbox'])
ctx=b.new_context(ignore_https_errors=True,viewport={'width':1300,'height':1000}); ctx.add_cookies(cookies); pg=ctx.new_page()
errs=[]; pg.on('pageerror',lambda e:errs.append(str(e)))
pg.goto('https://seaside.pacim.de/tasks/day/?date=2026-06-15&show=invoices',wait_until='networkidle'); pg.wait_for_timeout(600)
print('invoice rows:', pg.eval_on_selector_all('#dayInvBody tr','e=>e.length'))
# open the dropdown of our test row
row = pg.query_selector('#dayInvBody tr[data-invoice="122663"]')
print('test row present:', bool(row))
row.query_selector('button[data-bs-toggle=dropdown]').click(); pg.wait_for_timeout(300)
items = pg.eval_on_selector_all('#dayInvBody tr[data-invoice="122663"] .dropdown-item','e=>e.map(x=>x.textContent.trim())')
print('menu items:', items)
print('mailer modal present:', pg.eval_on_selector_all('#bmComposeModal','e=>e.length'), '| reverse modal:', pg.eval_on_selector_all('#invReverseModal','e=>e.length'))
pg.screenshot(path='/tmp/dayinv_menu.png')
# click Rückabwicklung
pg.query_selector('#dayInvBody tr[data-invoice="122663"] .dinv-reverse').click()
pg.wait_for_selector('#invReverseModal.show',timeout=4000); pg.wait_for_timeout(300)
print('confirm modal invoice no:', pg.eval_on_selector('#invRevNo','e=>e.textContent'))
pg.click('#invRevConfirm'); pg.wait_for_timeout(1200)
print('row after reverse:', pg.eval_on_selector_all('#dayInvBody tr[data-invoice="122663"]','e=>e.length'))
print('summary:', pg.eval_on_selector('#dayInvSummary','e=>e.textContent'))
print('JS errors:', errs)
b.close()