from playwright.sync_api import sync_playwright
with sync_playwright() as p:
b=p.chromium.launch(headless=True); page=b.new_page()
page.goto('https://sma.agentsolutions-mallorca.com/cockpit?days=3&sort=relevance&tab=radar',wait_until='networkidle')
c=page.locator('.ccard').first; c.locator('.thumb').click(force=True); text=page.locator('#pcontent').inner_text()
print('competition_card',c.count(),'post_analyse', 'Post analysieren' in text, 'post_create', 'Post erstellen' in text, 'competition', 'Konkurrenz analysieren' in text)
assert 'Post analysieren' in text and 'Post erstellen' in text