Assignment
1️⃣ Selenium for Browser Automation (5 Assignments)
Assignment 1: Install Selenium and Open a Browser
pip install seleniumfrom selenium import webdriver
driver = webdriver.Chrome() # Make sure you have ChromeDriver installed
driver.get("https://www.google.com")
print(driver.title)
driver.quit()Assignment 2: Open a Website and Get Page Title
driver = webdriver.Chrome()
driver.get("https://www.wikipedia.org")
print(f"Page Title: {driver.title}")
driver.quit()Assignment 3: Take a Screenshot of a Web Page
Assignment 4: Find an Element by ID and Get Text
Assignment 5: Scroll a Web Page Automatically
2️⃣ Interacting with Web Elements (5 Assignments)
Assignment 6: Enter Text in an Input Field
Assignment 7: Click a Button
Assignment 8: Select a Dropdown Option
Assignment 9: Extract All Links from a Page
Assignment 10: Close Popups and Alerts
3️⃣ API Testing with Postman (5 Assignments)
Assignment 11: Install and Set Up Postman
🔹 Task: Install Postman and make a GET request to https://jsonplaceholder.typicode.com/posts.
https://jsonplaceholder.typicode.com/posts.Assignment 12: Make a GET Request with Query Parameters
Assignment 13: Send a POST Request with JSON Data
Assignment 14: Test API Authentication with Headers
Assignment 15: Test PUT and DELETE Requests
4️⃣ Writing pytest-Based API Tests (5 Assignments)
pytest-Based API Tests (5 Assignments)Assignment 16: Install pytest and Write a Simple Test
pytest and Write a Simple TestAssignment 17: Write an API Test Using pytest
pytestAssignment 18: Test API Response Content
Assignment 19: Test an API Using Parametrization
Assignment 20: Mock an API Response for Testing
Last updated