ID naming conventions - adventurerscodex/uat GitHub Wiki

If possible, use an id for a selenium locator in Adventurer's Codex applications. Below is the preferred conventions and some examples to serve as guidelines.

If an id doesn't exist in an element, please make a pull request to the core app at: adventurerscodex

Conventions for elements that aren't modal windows:

component/name_of_field/element_type

Convention for elements in modal windows:

component/add_or_edit/name_of_field/element_type

Examples:

  • armorAddIcon
  • armorDeleteIcon
  • profileAlignmentInput
  • armorAddTypeInput
  • armorEditNameInput