Quiz: Meet the Agent
How to use this quiz
Ten questions on module 1. Answer each one before you open the explanation.
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
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
pom.xml or build.gradle, it follows the project. Lesson 1.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.tomland similar - C. In a temporary folder that is deleted after the session
- D. In the cloud
Show answer
~/selenium-ai-agent unless you set an output folder. Lesson 2.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 intoCLAUDE.md - C. Installs ChromeDriver
- D. Creates a Selenium Grid
Show answer
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
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
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_visibleonly works for buttons - D. The search did not work
Show answer
<span>. Lesson 3.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_executefor every call
Show answer
batch_execute reduces round trips, not the tool definitions. Lesson 3.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
guided uses the assertions-need-approval heal policy; strict refuses assertion changes altogether. Lesson 4.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
exploreprofile
Show answer
no-sleep is an error under Selenium’s rules for AI agents, under every profile. Lesson 4.