import { chromium } from 'playwright'; const b = await chromium.launch(); const p = await b.newPage({ viewport: { width: 1200, height: 900 } }); await p.goto('http://localhost:3107/?t=' + Math.floor(Math.random()*1e9), { waitUntil: 'networkidle' }); const mine = p.locator('.card', { hasText: 'you should ask hard questions' }).first(); const r = await mine.evaluate(el => ({ inlineTextAlign: el.style.textAlign, inlinePadding: el.style.padding, inlineBorderColor: el.style.borderColor, cssTextLen: el.style.cssText.length, cssText: el.style.cssText, computed: getComputedStyle(el).textAlign, })); console.log(JSON.stringify(r, null, 2)); await b.close();