17.2 User Interface Map

17.2.1| Creating a UIMap class to read locators from UIMap.properties file

Now we will build a UIMap class to access locator information from a properties file.


UIMap.properties
UIMap.properties example part-1



UIMap.properties
UIMap.properties example part-2



UIMap.properties
UIMap.properties example part-3


17.2.2| Creating a sample Test

Now let us create a sample test that would use the UIMap properties file and UIMap class file to locate elements.

Following example opens amazon.in the login page and then uses UIMap file to locate login page elements.


UIMap.properties
Sample Test



4 comments:

Arvind Tomar said...

Great sirji

Nikhil said...

Sharpen coding skills with Python online practice.Solve real problems.Ideal for improvement.

ONLINE IT GURU said...
This comment has been removed by the author.
ONLINE IT GURU said...

"Master Salesforce administration skills and become a certified expert with our hands-on salesforce admin course