Selenium Beginner 9 – How To Make Code MODULAR


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 –

Selenium YouTube Playlist

Send me your comments and feedback


%d bloggers like this: