Naming Conventions for Object / Locator Repository / Properties File

I guess there is no real need for me to emphasize why is it that we need to make our Object / Locator repository clean.

Whatever you call the OR:
  • Object map
  • Simple Properties file
  • Object Repository
  • Name Mapping file
  • Or any other file that stores your objects
The reason you want them to be clean:
  • Vastly reduce the amount of time needed for script
  • Script maintenance in case object properties change
  • Sophisticated Object identification and management
  • In the context of Selenium WebDriver, there is no out-of-the box solution for Object identification and repository. This furthermore increases the relevance and importance of a good way of managing things.
  • In an Agile based project, you can add object place holders so that as development is happening, even automation can begin in parallel.
  • Identify objects in the Object Repository that are no longer available in the AUT
  • Easy navigation when the size of the Object Repository grows exponentiall
#Naming Convention for Objects in OR

Name your page in this manner: 
e.g - GoogleProject.HomePage.SignIn.Link

the objects can be any of these:
# Button
# Calendar
# ComboBox
# CheckBox
# Dialog
# Frame
# Image
# Label
# Link
# Listbox
# MenuHeader
# MenuItem
# ProgressBar
# RadioButton
# Table
# TextBox
# TextArea
# Window

Once you know all the objects make sure that you place them in the right bucket:
Some examples:

all buttons


# Frame

AccountSummaryPage.Main.Label=xpath://*[@class='money bold Main Wallet r-mainWallet']




# RadioButton




Happy Testing!


  1. Anonymous13/6/14

    Hmm is anyone else encountering problems with the pictures on this blog loading?
    I'm trying to figure out if its a problem on my end or if
    it's the blog. Any responses would be greatly appreciated.

    my weblog; az dui law


Post a Comment

Popular posts from this blog

XPATH for IE / internet explorer

RPA - Blue Prism, OpenSpan, Automation Anywhere vs UIPath