Hello Folks,
We have seen Page Object Model in previous posts and you must be noticing that we are writing locators within code. It has its own disadvantages as below:
- For any modification in locator, you must need to touch the code.
- Difficult for manual tester or beginner in automation testing to find out correct place to change locator if needed.
So, we can also read locators from externals sources like:
a. Database b. Properties file c. XML file
d. Excel sheet