Selenium WebDriver 4

Chain multiple actions together

Hard120 pts~45 min
  • Actions API
  • Action chains
Practice app · Board Planner

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

Test URL
/lab/selenium-chain-multiple-actions-together

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

Objective

Build one Actions chain that double-clicks the rename card and right-clicks the roadmap card, then pick Copy.

Your task

  1. 1Create a single Actions chain: doubleClick(#dbl-target), then contextClick(#context-area), then perform().
  2. 2Click #context-copy in the context menu.
  3. 3Assert #dbl-result reads “Double click detected”.
  4. 4Assert #context-result reads “Action: copy”.

Acceptance criteria

  • doubleClick and contextClick are chained and performed
  • #dbl-result and #context-result show the expected texts
  • At least 2 assertions pass

Selenium WebDriver 4 · Selenium · Mouse & keyboard actions