Skip to main content

Quiz: Meet the Agent

How to use this quiz

Ten questions on module 1. Answer each one before you open the explanation.

Quiz

1. Which three agents did Playwright 1.56 introduce, and Selenium AI Agent bring to Selenium?

  • A. Recorder, runner and reporter
  • B. Planner, generator and healer
  • C. Explorer, writer and fixer
  • D. Analyzer, migrator and gate
Show answer
B. Selenium AI Agent adds a migrator and a regression analyzer. Lesson 1.
Quiz

2. Which output language does the generator use when you don’t ask for another one?

  • A. Java with JUnit 5
  • B. JavaScript with WebdriverIO
  • C. Python with pytest
  • D. Robot Framework
Show answer
C. In a Java project with a pom.xml or build.gradle, it follows the project. Lesson 1.
Quiz

3. Where does the server write test plans, tests and reports when it runs in Claude Code inside your project?

  • A. Always in ~/selenium-ai-agent
  • B. In the project: the nearest folder with .git, package.json, pyproject.toml and similar
  • C. In a temporary folder that is deleted after the session
  • D. In the cloud
Show answer
B. Outside a project, for example with Claude Desktop’s global configuration, it falls back to ~/selenium-ai-agent unless you set an output folder. Lesson 2.
Quiz

4. What does npx selenium-ai-agent init-agents --loop=claude --with-rules do?

  • A. Starts a browser and runs all tests
  • B. Adds the MCP server to .mcp.json, installs the agents in .claude/agents/, and writes Selenium’s rules into CLAUDE.md
  • C. Installs ChromeDriver
  • D. Creates a Selenium Grid
Show answer
B. Lesson 2.
Quiz

5. Which command checks Chrome, the driver, the proxy, the driver cache and the output folder?

  • A. npx selenium-ai-agent review
  • B. npx selenium-ai-agent gate
  • C. npx selenium-ai-agent doctor
  • D. npx selenium-ai-agent install
Show answer
C. Lesson 2.
Quiz

6. What is a ref in a snapshot?

  • A. A permanent id stored in the page
  • B. A short handle for an element, valid for the current snapshot, used in the next tool call
  • C. A CSS class
  • D. A link to the documentation
Show answer
B. Lesson 3.
Quiz

7. verify_text_visible "Search Results (1 products)" fails although the heading shows exactly that text. What is the most likely reason?

  • A. The page has not loaded
  • B. The text is split over several elements, so no single element’s own text contains the whole sentence
  • C. verify_text_visible only works for buttons
  • D. The search did not work
Show answer
B. The count is a separate <span>. Lesson 3.
Quiz

8. How can you reduce the number of tool definitions sent to the model with every request?

  • A. Use a smaller monitor
  • B. Load only the tool groups you need with SELENIUM_MCP_TOOLSETS
  • C. Turn off the browser
  • D. Use batch_execute for every call
Show answer
B. batch_execute reduces round trips, not the tool definitions. Lesson 3.
Quiz

9. The healer wants to change an expected total from “$350.89” to “$350.88” to make a failing test pass. Under the guided profile, what happens?

  • A. The fix is applied silently
  • B. The fix is refused unless the user approves the assertion change in the chat
  • C. The test is deleted
  • D. The plan is approved automatically
Show answer
B. guided uses the assertions-need-approval heal policy; strict refuses assertion changes altogether. Lesson 4.
Quiz

10. A generated test contains time.sleep(3). What does generator_write_test do?

  • A. Writes it with a warning
  • B. Refuses to write it, names the line and the rule, and asks for a fix
  • C. Replaces the sleep with a longer timeout
  • D. Writes it only under the explore profile
Show answer
B. no-sleep is an error under Selenium’s rules for AI agents, under every profile. Lesson 4.