Implements identified selectors into Page Objects, extending existing ones or creating new Page Objects while following project conventions.
Ships in core. Installing the plugin adds it to Claude Code.
Add identified selectors to appropriate Page Objects following project conventions and architecture patterns.
Actions:
### Selector Implementation Checklist
#### DashboardPage (existing - extend)
- [ ] Add welcomeMessage selector
- [ ] Add dashboardTitle selector
- [ ] Add notificationBell selector
#### SettingsPage (new - create)
- [ ] Create new Page Object file
- [ ] Add emailInput selector
- [ ] Add saveButton selector
- [ ] Add successNotification selector
Expected Output: Clear plan of what needs to be implemented.
Actions:
// Example: If existing pattern is:
private readonly loginButton = '[data-testid="login-btn"]';
// Add new selectors in same style:
private readonly welcomeMessage = '[data-testid="welcome-message"]';
private readonly dashboardTitle = '#dashboard-title';
// If Page Object has action methods, add new ones:
async getWelcomeMessage(): Promise<string> {
return await this.page.textContent(this.welcomeMessage);
}
async clickNotificationBell(): Promise<void> {
await this.page.click(this.notificationBell);
}
Expected Output: Existing Page Objects extended with new selectors and methods.
Actions:
// Example: src/pages/SettingsPage.ts
import { Page } from '@playwright/test';
import { BasePage } from './BasePage'; // If base class exists
export class SettingsPage extends BasePage {
// Selectors
private readonly emailInput = '[data-testid="email-input"]';
private readonly saveButton = '[data-testid="save-btn"]';
private readonly successNotification = '.notification.success';
constructor(page: Page) {
super(page);
}
// Action methods
async updateEmail(email: string): Promise<void> {
await this.page.fill(this.emailInput, email);
}
async clickSave(): Promise<void> {
await this.page.click(this.saveButton);
}
async isSuccessNotificationVisible(): Promise<boolean> {
return await this.page.isVisible(this.successNotification);
}
}
Expected Output: New Page Object file(s) created following project standards.
Actions:
/**
* Welcome message displayed after user login
* Format: "Welcome, [username]"
*/
private readonly welcomeMessage = '[data-testid="welcome-message"]';
/**
* Retrieves the welcome message text
* @returns The welcome message string
*/
async getWelcomeMessage(): Promise<string> {
return await this.page.textContent(this.welcomeMessage);
}
Expected Output: Documentation added consistent with project standards.
Actions:
Use: ReadLints tool on modified files
Expected Output: All selectors implemented correctly with no errors.
Actions:
## Phase 5: Selector Implementation
### Page Objects Modified
#### DashboardPage (src/pages/DashboardPage.ts)
Added selectors:
- `welcomeMessage`: [data-testid="welcome-message"] - Text verification
- `dashboardTitle`: #dashboard-title - Text verification
- `notificationBell`: [aria-label="Notifications"] - Click action
Added methods:
- `getWelcomeMessage()`: Returns welcome text
- `getDashboardTitle()`: Returns title text
- `clickNotificationBell()`: Clicks notification icon
#### SettingsPage (src/pages/SettingsPage.ts) - NEW
Created new Page Object with selectors:
- `emailInput`: [data-testid="email-input"] - Text input
- `saveButton`: [data-testid="save-btn"] - Click action
- `successNotification`: .notification.success - Visibility check
Methods implemented:
- `updateEmail(email)`: Updates email field
- `clickSave()`: Clicks save button
- `isSuccessNotificationVisible()`: Checks notification
### Implementation Notes
- [Any deviations from original plan]
- [Any issues encountered and resolved]
### Files Modified
- src/pages/DashboardPage.ts (extended)
- src/pages/SettingsPage.ts (created)
Expected Output: Test plan updated with implementation details.
agents/aqa-state.md updated with Phase 5 completionAfter completing Phase 5, update agents/aqa-state.md:
### Phase 5: Selector Implementation
- Completed: [DateTime]
- Page Objects Modified: [List with file paths]
- Page Objects Created: [List with file paths]
- Total Selectors Added: [Count]
- Helper Methods Added: [Count]
- Linting Issues: [None / Resolved]
Mark Phase 5 as completed and Phase 6 as current.
Proceed to Phase 6: Test Implementation by executing:
ACQUIRE aqa-flow-test-implementation.md FROM KB
Files this command reads when invoked
What the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
/griddynamics-core-instructions-r2-core:aqa-flow-selector-implementationfrom core
Generated from the plugin's indexed repository (griddynamics/rosetta) — no native marketplace selected
npx claudepluginhub p/griddynamics-core-instructions-r2-core43 commands in this plugin
/adhoc-flowWorkflow for the rest of tasks: lightweight documentation, build, track, synchronize, etc./aqa-flowWorkflow for automated QA: integration and end-to-end UI test automation, page objects, etc./aqa-flow-code-analysisPhase 3 Code Analysis of aqa-flow/aqa-flow-data-collectionPhase 1 Data Collection of aqa-flow/aqa-flow-requirements-clarificationPhase 2 Requirements Clarification of aqa-flow/aqa-flow-selector-identificationPhase 4 Selector Identification of aqa-flowOther plugins' commands for the same job