How do I expand the browser window while running Playwright automation tests?

How do I expand the browser window while running Playwright automation tests?

Hi Joe,

You can expand the browser window using the below syntax:

const browser = await chromium.connect({
    wsEndpoint: `wss://cdp.lambdatest.com/playwright?capabilities=${encodeURIComponent(JSON.stringify(capabilities))}`
  })
  const page = await browser.newPage()
  await page.setViewportSize({ width: 1600, height: 1200 });
  await page.goto('https://www.bing.com')