This project uses Selenium and Python to test the login functionality of the OrangeHRM demo website.
- Python
- Selenium
- ChromeDriver
This test checks what happens when someone tries to log in with the wrong username or password on the OrangeHRM demo website.
- Opens the login page
- Enters fake credentials (wrong username and password)
- Clicks the login button
- Waits for the error message to appear
- Takes a screenshot and saves it in the "Screenshots" folder
- The login should fail
- An error message like “Invalid credentials” should appear
- A screenshot should be saved for record-keeping or debugging
This is a simple Selenium project written in Python to test the login functionality of the OrangeHRM demo site using multiple sets of credentials from a CSV file.
- Opens the OrangeHRM login page
- Reads usernames and passwords from
login_data.csv - Tries to log in with each one
- Prints whether login was successful or failed
- Saves screenshots for any failed login attempts
Make sure all files are in the same directory. Then run:
python test_login_with_csv.py