Selenium WebDriver 4

Perform a right-click context action

Medium70 pts~25 min
  • Actions API
  • Context click
Practice app · Board Planner

Hover menus, drag and drop, context menu, click-and-hold and keyboard shortcuts.

Test URL
/lab/selenium-perform-a-right-click-context-action

Your starter code already declares TEST_URL — never hardcode a host.

Objective

Right-click the roadmap card to open its context menu and choose Delete.

Your task

  1. 1Context-click #context-area with Actions (contextClick / context_click / ContextClick).
  2. 2Wait for #context-menu to be visible and assert it.
  3. 3Click #context-delete.
  4. 4Assert #context-result reads “Action: delete”.

Acceptance criteria

  • The menu is opened with a context click
  • #context-result shows “Action: delete”
  • At least 2 assertions pass

Selenium WebDriver 4 · Selenium · Mouse & keyboard actions