Skip to main content
Best practices learned from real-world Optexity deployments.

Design Principles


Locator Strategy

Priority Order

Always Provide Fallback

Avoid Dynamic IDs

Bad:
Good:

Naming Conventions


Timing Guidelines


Error Handling

Optional Elements

Use assert_locator_presence for elements that may not appear:

Skip Optional Steps


Security


Performance


Debugging

Common Issues

Debug with Screenshots


Pre-Deployment Checklist

  • All locators have prompt_instructions
  • Sensitive data in secure_parameters
  • Appropriate wait times for page loads
  • Optional elements use assert_locator_presence
  • Error cases considered
  • Tested on realistic data
  • Variable names are descriptive
  • Complex logic is commented