Selenium Beginner 9 – How To Make Code MODULAR

Notes:

Today we will learn:
1. How to identify actions
2. How to make code modular
_____________________________
Step 1: Create methods for separate actions/functionality
Step 2: Copy required code from main to these methods
Step 3: Call the methods from main in required sequence
Step 4: Run and Validate

Helpful Tips:
1. Create a separate function for every functionality
2. Add comments wherever applicable and useful

References: Coding Best Practices for Beginner – https://www.ibm.com/developerworks/library/j-perry-writing-good-java-code/index.html


Selenium YouTube Playlist


Send me your comments and feedback

 

0
%d bloggers like this: