BrauzerLab
← Back to missions 13 / 50

Double Click & Right Click

Easy ~180 sec

A regular click isn’t always enough. Opening a document requires a double click; showing a context menu requires a right click.

The browser on the right has two buttons. Activate the first with a double click and the second with a right click.

The page object is already available. Complete both actions correctly to pass the mission.

Several approaches work for right-click — the standard click({ button: 'right' }) does not fully trigger the contextmenu event in this simulation; dispatchEvent('contextmenu') is the reliable path.

TASK

Double-click the «Open Document» button, then right-click the «Menu» button.

Provided for you
import { test, expect } from '@playwright/test';

test('Double Click & Right Click', async ({ page }) => {
  await page.goto('https://lab.local/mission/click-variants');
  // ↓ Your code goes below ↓
});
Editor
https://lab.local/mission/click-variants
Loading...
Results will appear here — press Run or Check.