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.
Recommended guidance
- 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
- Identify which element or object needs a clearer generated name.
- Define a getName method that returns concise, unique, and stable text.
- Handle missing or unexpected attributes safely.
- Test the naming logic against representative elements.
- Document the naming convention so future maintainers understand it.
Last updated: September 21, 2026
If you have feedback on this topic, contact documentation@appvance.ai.