Skip to main content

Use Custom getName Methods for SmartTags

Last reviewed: September 21, 2026

Use this page when custom naming logic is needed for SmartTags or generated element names. Keep naming deterministic so tests remain readable and maintainable.

  • Use a custom getName method only when default names are not descriptive enough.
  • Keep generated names stable across runs.
  • Avoid including sensitive data in generated names or logs.

Validation workflow

  1. Identify which element or object needs a clearer generated name.
  2. Define a getName method that returns concise, unique, and stable text.
  3. Handle missing or unexpected attributes safely.
  4. Test the naming logic against representative elements.
  5. Document the naming convention so future maintainers understand it.

Note: If SmartTags are not used in the current workflow, mark this page as a legacy reference during future consolidation.


Last updated: September 21, 2026

If you have feedback on this topic, contact documentation@appvance.ai.