| 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/cwd/tmp/ |
Upload File : |
from playwright.sync_api import sync_playwright
cookies = []
for line in open('/tmp/cj_ma.txt'):
if line.startswith('#') or not line.strip():
continue
p = line.strip().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(); ctx.add_cookies(cookies)
pg = ctx.new_page()
pg.goto('https://seaside.pacim.de/tasks/day/', wait_until='networkidle')
pg.wait_for_timeout(600)
def setpark(vals):
pg.evaluate('''(vals) => {
document.querySelectorAll('.ma-park').forEach(function(c){
c.checked = vals.indexOf(c.value)!==-1;
c.dispatchEvent(new Event('change',{bubbles:true}));
});
}''', vals)
pg.wait_for_timeout(120)
def state():
return pg.evaluate('''() => {
const t=document.querySelector('.ma-col[value="type"]');
return {disabled:t.disabled};
}''')
for combo in (['halle'],['aussen'],['valet'],['halle','aussen'],['valet','halle'],['halle','aussen','valet']):
setpark(combo)
print(combo, '-> Typ disabled =', state()['disabled'])
b.close()