"
Page Object Interaction Diagram
%%{init: {'theme':'dark', 'themeVariables': { 'primaryColor': '#4fd1c7', 'primaryTextColor': '#fff', 'primaryBorderColor': '#4fd1c7', 'lineColor': '#f8f9fa', 'secondaryColor': '#6c757d', 'tertiaryColor': '#2c3e50' }}}%%
sequenceDiagram
participant Test as Test Method
participant LP as LoginPage
participant DP as DashboardPage
participant PP as ProfilePage
participant WD as WebDriver
Test->>LP: new LoginPage()
Test->>LP: open()
LP->>WD: navigate to /login
Test->>LP: login(username, password)
LP->>WD: find username field
LP->>WD: enter username
LP->>WD: find password field
LP->>WD: enter password
LP->>WD: click login button
LP-->>Test: return DashboardPage
Test->>DP: isWelcomeDisplayed()
DP->>WD: find welcome element
DP-->>Test: return true
Test->>DP: navigateToProfile()
DP->>WD: click profile link
DP-->>Test: return ProfilePage
Test->>PP: updateEmail(newEmail)
PP->>WD: find email field
PP->>WD: clear and enter email
PP->>WD: click save button
PP-->>Test: return success