| 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/3951577/root/tmp/ |
Upload File : |
from playwright.sync_api import sync_playwright
cookies=[]
for line in open('cj.txt'):
if line.startswith('#') or not line.strip(): continue
p=line.rstrip('\n').split('\t')
if len(p)>=7: cookies.append((p[5],p[6]))
with sync_playwright() as pw:
b=pw.chromium.launch(args=['--ignore-certificate-errors'])
ctx=b.new_context(viewport={'width':1300,'height':950},ignore_https_errors=True)
ctx.add_cookies([{'name':n,'value':v,'domain':'seaside.pacim.de','path':'/'} for n,v in cookies])
pg=ctx.new_page()
errs=[]; pg.on('console', lambda m: errs.append(m.text) if m.type=='error' else None)
pg.goto('https://seaside.pacim.de/index.php?getTemplate=mailing',wait_until='networkidle')
tabs=pg.eval_on_selector_all('.nav-tabs .nav-link','els=>els.map(e=>e.textContent.trim())')
print('tabs:',tabs)
pg.click('button[data-bs-target="#ml-accounts"]'); pg.wait_for_timeout(700)
# create an account through the UI
pg.click('#acAddBtn'); pg.wait_for_timeout(400)
pg.fill('#acName','Buchhaltung'); pg.fill('#acHost','smtp.test.de'); pg.fill('#acFromEmail','buch@test.de'); pg.fill('#acFromName','Buchhaltung')
pg.click('#acForm button[type=submit]'); pg.wait_for_timeout(900)
rows=pg.eval_on_selector('#acBody','e=>e.textContent.replace(/\s+/g," ").trim().slice(0,60)')
print('acBody after create:',repr(rows))
pg.keyboard.press('Escape'); pg.wait_for_timeout(300)
# now check rule modal dropdown reflects the new account
pg.click('button[data-bs-target="#ml-rules"]'); pg.wait_for_timeout(500)
pg.click('#rlAddBtn'); pg.wait_for_timeout(500)
rlacc=pg.eval_on_selector('#rlAccount','e=>[...e.options].map(o=>o.text)')
print('rlAccount options:',rlacc)
pg.screenshot(path='konten_tab.png')
print('errors:',errs[:5])
b.close()