Suggested naming conventions for Selenium identifiers

Viewed 11024

I am using selenium page object model to define all the page elements. I am little unconvinced with the naming conventions that I have followed for naming the element and felt too long. Please suggest on this.

@FindBy(xpath = "//tbody[@id='tabview:listComp1_data']/tr/td[1]/div/div[2]")
public WebElement tableCompanyResultsRow;

@FindBy(xpath = ".//*[@id='mttAddId']")
public WebElement buttonAddMap;

@FindBy(xpath = ".//*[@id='ittAddId']")
public WebElement buttonAddItinerary;

@FindBy(xpath = "//div[@id='ajaxStatusPanel_start']/img")
public WebElement imageLoading;
1 Answers
Related