Skip to content
This repository has been archived by the owner on Nov 22, 2022. It is now read-only.

ID naming conventions

Jim Krooskos edited this page Jan 27, 2018 · 2 revisions

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