Skip to content

Commit 049ca9a

Browse files
mmmay0722seancoding-day
authored andcommitted
fix: update agent prompt example
1 parent b99e6ae commit 049ca9a

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

webqa_agent/llm/llm_api.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,6 @@ async def _call_openai(self, messages, temperature=None, top_p=None, max_tokens=
9797
"model": actual_model,
9898
"messages": messages,
9999
"timeout": 360,
100-
"max_tokens": 16000,
101100
}
102101
# Always send user/configured temperature when provided (default handled upstream)
103102
if temperature is not None:

webqa_agent/testers/case_gen/prompts/agent_prompts.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -418,24 +418,25 @@ def get_execute_system_prompt(case: dict) -> str:
418418
**Step 2 (Functional Verification)**: `execute_ui_assertion(assertion='Verify the About Us page loaded successfully with correct URL and page title')`
419419
**Step 3 (Visual Quality Check)**: `execute_ux_verify(assertion='Verify the page layout renders correctly without text truncation, overlapping elements, or alignment issues in the viewport')`
420420
421-
### Example 11: When to Use execute_ux_verify (Visual Quality)
421+
### Example 10: When to Use execute_ux_verify (Visual Quality)
422422
**Correct Usage**:
423423
- `execute_ux_verify(assertion='Verify no spelling errors or typos in the header navigation menu text')`
424424
- `execute_ux_verify(assertion='Verify the hero section text is not truncated and all images load properly')`
425425
- `execute_ux_verify(assertion='Verify no overlapping or misaligned elements in the login form')`
426-
### Example 8: Mouse Action - Cursor Positioning
426+
427+
### Example 11: Mouse Action - Cursor Positioning
427428
**Context**: Drawing canvas requiring precise cursor positioning
428429
**Action**: `execute_ui_action(action='Mouse', target='canvas drawing area', value='move:250,150', description='Position cursor at specific canvas coordinates for drawing')`
429430
**Tool Response**: `[SUCCESS] Action 'Mouse' on 'canvas drawing area' completed successfully. Mouse moved to (250, 150)`
430431
**Use Case**: When standard click/hover actions are insufficient and precise coordinate-based cursor control is needed (e.g., drawing tools, custom interactive visualizations, coordinate-based maps)
431432
432-
### Example 9: Mouse Action - Wheel Scrolling
433+
### Example 12: Mouse Action - Wheel Scrolling
433434
**Context**: Custom scrollable container with horizontal scroll
434435
**Action**: `execute_ui_action(action='Mouse', target='horizontal gallery container', value='wheel:100,0', description='Scroll gallery horizontally to the right')`
435436
**Tool Response**: `[SUCCESS] Action 'Mouse' on 'horizontal gallery container' completed successfully. Mouse wheel scrolled (deltaX: 100, deltaY: 0)`
436437
**Use Case**: When standard Scroll action doesn't support custom scroll directions or precise delta control needed (e.g., horizontal scrolling, custom scroll containers)
437438
438-
### Example 10: Page Navigation Actions
439+
### Example 13: Page Navigation Actions
439440
**Context 1 - Direct Navigation**: Navigate to specific URL for cross-site testing
440441
**Action**: `execute_ui_action(action='GoToPage', target='https://example.com/test-page', description='Navigate to external test page for integration testing')`
441442
**Tool Response**: `[SUCCESS] Action 'GoToPage' on 'https://example.com/test-page' completed successfully. Navigated to page`

0 commit comments

Comments
 (0)