1. Package declaration should start with com. and followed by your companyname
2. Class name should start with capital letter
3. Method name should start with small letter
4. Global variable name should be in capital letter and each word in name should be separated by '_' like MAX_CAPACITY
5. Follow the following prefix data types
string - str
int - i,
float - f
long - l
double - d
List - list
Map - map
string array - strArr
int array - iArr
6. Variable name should be in CamelCase like getRowId, strUserNamen
7. Every object in selenium is webelement. However to use approriately in script while you have number of weblements present in pagefactory class please follow the following naming convention.
webedit - txt
webbutton - btn
link - lnk
combo box - cbk
weblist - lst
check box - chk
frame - fra
Dialog - dlg
image - img
2. Class name should start with capital letter
3. Method name should start with small letter
4. Global variable name should be in capital letter and each word in name should be separated by '_' like MAX_CAPACITY
5. Follow the following prefix data types
string - str
int - i,
float - f
long - l
double - d
List - list
Map - map
string array - strArr
int array - iArr
6. Variable name should be in CamelCase like getRowId, strUserNamen
7. Every object in selenium is webelement. However to use approriately in script while you have number of weblements present in pagefactory class please follow the following naming convention.
webedit - txt
webbutton - btn
link - lnk
combo box - cbk
weblist - lst
check box - chk
frame - fra
Dialog - dlg
image - img
No comments:
Post a Comment