From 54c34dcffe45940fd076b1b872f54e7a7216c7ae Mon Sep 17 00:00:00 2001 From: Sheefhuss Date: Wed, 2 Sep 2026 11:09:40 +0530 Subject: [PATCH 1/6] Added Group 82 files --- Selenium_Automation_Group82-main/README.md | 48 +++++++++++++++++++ .../Code_section/Assigment2.py | 18 +++++++ .../Code_section/Assignment1.py | 31 ++++++++++++ .../Code_section/requirements.txt | 17 +++++++ .../Video/Video_Assignments.md | 8 ++++ 5 files changed, 122 insertions(+) create mode 100644 Selenium_Automation_Group82-main/README.md create mode 100644 Selenium_Automation_Group82-main/submissions/SheefaHussain_12023002023039;Aishwarya Banerjee_12023002023004;DebapriyaRoy_12023002022030;SomyadeepAdhikari_12023002023053/Code_section/Assigment2.py create mode 100644 Selenium_Automation_Group82-main/submissions/SheefaHussain_12023002023039;Aishwarya Banerjee_12023002023004;DebapriyaRoy_12023002022030;SomyadeepAdhikari_12023002023053/Code_section/Assignment1.py create mode 100644 Selenium_Automation_Group82-main/submissions/SheefaHussain_12023002023039;Aishwarya Banerjee_12023002023004;DebapriyaRoy_12023002022030;SomyadeepAdhikari_12023002023053/Code_section/requirements.txt create mode 100644 Selenium_Automation_Group82-main/submissions/SheefaHussain_12023002023039;Aishwarya Banerjee_12023002023004;DebapriyaRoy_12023002022030;SomyadeepAdhikari_12023002023053/Video/Video_Assignments.md diff --git a/Selenium_Automation_Group82-main/README.md b/Selenium_Automation_Group82-main/README.md new file mode 100644 index 0000000..b5c80b0 --- /dev/null +++ b/Selenium_Automation_Group82-main/README.md @@ -0,0 +1,48 @@ +# Selenium_Automation_Group82 +This project focuses on web automation testing using Selenium WebDriver and Python. It demonstrates automated testing of web applications, including interacting with web elements such as text fields, buttons, radio buttons, dropdowns, and other UI components. + +# Selenium Automation Testing + +## Group Members + +| Name | Roll No. | Section | +|------|----------|---------| +| Sheefa Hussain | 12023002023039 | CSIT A | +| Aishwarya Banerjee | 12023002023004 | CSIT A | +| Debapriya Roy | 12023002022030 | CST A | +| Somyadeeo Adhikari | 12023002023053 | CSIT A | + +## Description + +This submission contains the work completed for Selenium Automation Testing using Python and Selenium WebDriver. + +The assignments cover Selenium installation and troubleshooting, web element identification, multiple element identification, CSS selectors, and child/nested element identification. + +## Assignments + +### Assignment 1: Web Element Identification + +Identify and locate different web elements using: + +- `By.ID` +- `By.NAME` +- `By.TAG_NAME` +- `By.LINK_TEXT` +- `By.CLASS_NAME` + +### Assignment 2: Multiple Element Identification + +Identify multiple elements on a webpage using Selenium and work with the list of elements. + +### Assignment 3: CSS Selector Challenge + +Locate web elements using CSS selectors, including wildcard selectors for elements with varying or dynamic attribute values. + +### Assignment 4: Child Nodes Using CSS + +Identify and locate child/nested web elements using CSS selectors and interact with the required elements. + +## Reference + +**Reference/Video Link:** +[https://youtube.com/watch?v=v-l05NiSYcg&si=VrDme6znhbRZ_Dun] diff --git a/Selenium_Automation_Group82-main/submissions/SheefaHussain_12023002023039;Aishwarya Banerjee_12023002023004;DebapriyaRoy_12023002022030;SomyadeepAdhikari_12023002023053/Code_section/Assigment2.py b/Selenium_Automation_Group82-main/submissions/SheefaHussain_12023002023039;Aishwarya Banerjee_12023002023004;DebapriyaRoy_12023002022030;SomyadeepAdhikari_12023002023053/Code_section/Assigment2.py new file mode 100644 index 0000000..48479a3 --- /dev/null +++ b/Selenium_Automation_Group82-main/submissions/SheefaHussain_12023002023039;Aishwarya Banerjee_12023002023004;DebapriyaRoy_12023002022030;SomyadeepAdhikari_12023002023053/Code_section/Assigment2.py @@ -0,0 +1,18 @@ +from selenium import webdriver +from selenium.webdriver.common.by import By + +driver = webdriver.Chrome() + +driver.get("https://www.google.com") + +links = driver.find_elements(By.TAG_NAME, "a") + +print(f"Total links found on the page: {len(links)}") +print("-" * 30) + +for link in links: + link_text = link.text + if link_text.strip(): + print(link_text) + +driver.quit() diff --git a/Selenium_Automation_Group82-main/submissions/SheefaHussain_12023002023039;Aishwarya Banerjee_12023002023004;DebapriyaRoy_12023002022030;SomyadeepAdhikari_12023002023053/Code_section/Assignment1.py b/Selenium_Automation_Group82-main/submissions/SheefaHussain_12023002023039;Aishwarya Banerjee_12023002023004;DebapriyaRoy_12023002022030;SomyadeepAdhikari_12023002023053/Code_section/Assignment1.py new file mode 100644 index 0000000..4d69709 --- /dev/null +++ b/Selenium_Automation_Group82-main/submissions/SheefaHussain_12023002023039;Aishwarya Banerjee_12023002023004;DebapriyaRoy_12023002022030;SomyadeepAdhikari_12023002023053/Code_section/Assignment1.py @@ -0,0 +1,31 @@ +from selenium import webdriver +from selenium.webdriver.common.by import By + +# Open Chrome +driver = webdriver.Chrome() + +# Open the login webpage +driver.get("https://the-internet.herokuapp.com/login") + +# 1. Locate Username using ID +username = driver.find_element(By.ID, "username") +print("Username field found:", username) + +# 2. Locate Password using NAME +password = driver.find_element(By.NAME, "password") +print("Password field found:", password) + +# 3. Locate an input element using TAG_NAME +input_element = driver.find_element(By.TAG_NAME, "input") +print("Input element found:", input_element) + +# 4. Locate Elemental Selenium link using LINK_TEXT +link = driver.find_element(By.LINK_TEXT, "Elemental Selenium") +print("Link text:", link.text) + +# 5. Locate Login button using CLASS_NAME +login_button = driver.find_element(By.CLASS_NAME, "radius") +print("Login button text:", login_button.text) + +# Close the browser +driver.quit() diff --git a/Selenium_Automation_Group82-main/submissions/SheefaHussain_12023002023039;Aishwarya Banerjee_12023002023004;DebapriyaRoy_12023002022030;SomyadeepAdhikari_12023002023053/Code_section/requirements.txt b/Selenium_Automation_Group82-main/submissions/SheefaHussain_12023002023039;Aishwarya Banerjee_12023002023004;DebapriyaRoy_12023002022030;SomyadeepAdhikari_12023002023053/Code_section/requirements.txt new file mode 100644 index 0000000..30e066d --- /dev/null +++ b/Selenium_Automation_Group82-main/submissions/SheefaHussain_12023002023039;Aishwarya Banerjee_12023002023004;DebapriyaRoy_12023002022030;SomyadeepAdhikari_12023002023053/Code_section/requirements.txt @@ -0,0 +1,17 @@ +attrs==26.1.0 +certifi==2026.7.22 +cffi==2.1.1 +h11==0.16.0 +idna==3.19 +outcome==1.3.0.post0 +pycparser==3.0 +PySocks==1.7.1 +selenium==4.47.0 +sniffio==1.3.1 +sortedcontainers==2.4.0 +trio==0.34.0 +trio-websocket==0.12.2 +typing_extensions==4.16.0 +urllib3==2.7.0 +websocket-client==1.9.0 +wsproto==1.3.2 diff --git a/Selenium_Automation_Group82-main/submissions/SheefaHussain_12023002023039;Aishwarya Banerjee_12023002023004;DebapriyaRoy_12023002022030;SomyadeepAdhikari_12023002023053/Video/Video_Assignments.md b/Selenium_Automation_Group82-main/submissions/SheefaHussain_12023002023039;Aishwarya Banerjee_12023002023004;DebapriyaRoy_12023002022030;SomyadeepAdhikari_12023002023053/Video/Video_Assignments.md new file mode 100644 index 0000000..9b7236b --- /dev/null +++ b/Selenium_Automation_Group82-main/submissions/SheefaHussain_12023002023039;Aishwarya Banerjee_12023002023004;DebapriyaRoy_12023002022030;SomyadeepAdhikari_12023002023053/Video/Video_Assignments.md @@ -0,0 +1,8 @@ +## **Selenium Installment and Troubleshooting** +[↑ Click Here](https://drive.google.com/file/d/1EzHeOPSG0tosbtQ2L5OeBeWiV4UYHfiK/view?usp=drivesdk) + +## **Assignment 1** +[↑ Click Here](https://drive.google.com/file/d/1w64CM8OtncPNQJo5ZQpEsuYCZmTfRd8U/view?usp=drivesdk) + +## **Assignment 2** +[↑ Click Here](https://drive.google.com/file/d/1PBBvmZy0pBJ1CZwcHdZKrlA4aO_AU_cL/view) From 03ad8fda47ca04743eafa1f24bc72dd7cb428442 Mon Sep 17 00:00:00 2001 From: Sheefhuss Date: Wed, 2 Sep 2026 11:10:51 +0530 Subject: [PATCH 2/6] Update README with project information and assignments Added project details, group members, and assignments for Selenium Automation Testing. --- README.md | 49 ++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 48 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index f6b37ae..b5c80b0 100644 --- a/README.md +++ b/README.md @@ -1 +1,48 @@ -# selenium \ No newline at end of file +# Selenium_Automation_Group82 +This project focuses on web automation testing using Selenium WebDriver and Python. It demonstrates automated testing of web applications, including interacting with web elements such as text fields, buttons, radio buttons, dropdowns, and other UI components. + +# Selenium Automation Testing + +## Group Members + +| Name | Roll No. | Section | +|------|----------|---------| +| Sheefa Hussain | 12023002023039 | CSIT A | +| Aishwarya Banerjee | 12023002023004 | CSIT A | +| Debapriya Roy | 12023002022030 | CST A | +| Somyadeeo Adhikari | 12023002023053 | CSIT A | + +## Description + +This submission contains the work completed for Selenium Automation Testing using Python and Selenium WebDriver. + +The assignments cover Selenium installation and troubleshooting, web element identification, multiple element identification, CSS selectors, and child/nested element identification. + +## Assignments + +### Assignment 1: Web Element Identification + +Identify and locate different web elements using: + +- `By.ID` +- `By.NAME` +- `By.TAG_NAME` +- `By.LINK_TEXT` +- `By.CLASS_NAME` + +### Assignment 2: Multiple Element Identification + +Identify multiple elements on a webpage using Selenium and work with the list of elements. + +### Assignment 3: CSS Selector Challenge + +Locate web elements using CSS selectors, including wildcard selectors for elements with varying or dynamic attribute values. + +### Assignment 4: Child Nodes Using CSS + +Identify and locate child/nested web elements using CSS selectors and interact with the required elements. + +## Reference + +**Reference/Video Link:** +[https://youtube.com/watch?v=v-l05NiSYcg&si=VrDme6znhbRZ_Dun] From 44843e719d8887fa97ae058f5d981f0faf38cfe1 Mon Sep 17 00:00:00 2001 From: Sheefhuss Date: Wed, 2 Sep 2026 14:36:59 +0530 Subject: [PATCH 3/6] Assignment 3 and 4 code --- .../Code_section/Assignment3_4.py | 45 +++++++++++++++++++ .../Video/Video_Assignments.md | 6 +++ 2 files changed, 51 insertions(+) create mode 100644 Selenium_Automation_Group82-main/submissions/SheefaHussain_12023002023039;Aishwarya Banerjee_12023002023004;DebapriyaRoy_12023002022030;SomyadeepAdhikari_12023002023053/Code_section/Assignment3_4.py diff --git a/Selenium_Automation_Group82-main/submissions/SheefaHussain_12023002023039;Aishwarya Banerjee_12023002023004;DebapriyaRoy_12023002022030;SomyadeepAdhikari_12023002023053/Code_section/Assignment3_4.py b/Selenium_Automation_Group82-main/submissions/SheefaHussain_12023002023039;Aishwarya Banerjee_12023002023004;DebapriyaRoy_12023002022030;SomyadeepAdhikari_12023002023053/Code_section/Assignment3_4.py new file mode 100644 index 0000000..033881a --- /dev/null +++ b/Selenium_Automation_Group82-main/submissions/SheefaHussain_12023002023039;Aishwarya Banerjee_12023002023004;DebapriyaRoy_12023002022030;SomyadeepAdhikari_12023002023053/Code_section/Assignment3_4.py @@ -0,0 +1,45 @@ +from selenium import webdriver +from selenium.webdriver.common.by import By +import time + +driver = webdriver.Chrome() + +url = "https://the-internet.herokuapp.com/login" +driver.get(url) + +print(f"Navigated to: {url}") +print("-" * 30) + +#ASSIGNMENT 3: CSS Selector Challenge (Wildcards) + +print("Executing Assignment 3: Wildcard CSS Selectors...") + +username_field = driver.find_element(By.CSS_SELECTOR, "input[id^='user']") +username_field.send_keys("Sheefa") +print("Found the Username field using [id^='user'] and typed the username.") + +password_field = driver.find_element(By.CSS_SELECTOR, "input[id*='pass']") +password_field.send_keys("SuperSecretPassword!") +print("Found the Password field using [id*='pass'] and typed the password.") + +print("-" * 30) + +# ASSIGNMENT 4: Child Nodes Using CSS + +print("Executing Assignment 4: Child Node CSS Selectors...") + +# Locate the Login button nested inside the form using a descendant selector +# The form has id="login", and the button is a child inside it. +nested_button = driver.find_element(By.CSS_SELECTOR, "form label") +nested_button.click() + +#direct_child_button = driver.find_element(By.CSS_SELECTOR, "button > i") +#direct_child_button.click() +print("Clicked the Login button using the 'form button' child selector.") + +print("-" * 30) + +time.sleep(3) + +print("Test finished successfully! Browser closed.") +driver.quit() \ No newline at end of file diff --git a/Selenium_Automation_Group82-main/submissions/SheefaHussain_12023002023039;Aishwarya Banerjee_12023002023004;DebapriyaRoy_12023002022030;SomyadeepAdhikari_12023002023053/Video/Video_Assignments.md b/Selenium_Automation_Group82-main/submissions/SheefaHussain_12023002023039;Aishwarya Banerjee_12023002023004;DebapriyaRoy_12023002022030;SomyadeepAdhikari_12023002023053/Video/Video_Assignments.md index 9b7236b..676c434 100644 --- a/Selenium_Automation_Group82-main/submissions/SheefaHussain_12023002023039;Aishwarya Banerjee_12023002023004;DebapriyaRoy_12023002022030;SomyadeepAdhikari_12023002023053/Video/Video_Assignments.md +++ b/Selenium_Automation_Group82-main/submissions/SheefaHussain_12023002023039;Aishwarya Banerjee_12023002023004;DebapriyaRoy_12023002022030;SomyadeepAdhikari_12023002023053/Video/Video_Assignments.md @@ -6,3 +6,9 @@ ## **Assignment 2** [↑ Click Here](https://drive.google.com/file/d/1PBBvmZy0pBJ1CZwcHdZKrlA4aO_AU_cL/view) + +## **Assignment 3** +[↑ Click Here](https://drive.google.com/file/d/1WmQFR-dZCJuMQrCrPlGnKB1oy1-tP28g/view?usp=drivesdk) + +## **Assignment 4** +[↑ Click Here](https://drive.google.com/file/d/1L0KeEeQWG4EEIOhxA1yeoZqLyalcZ1VA/view?usp=drivesdk) \ No newline at end of file From 86212fd84ad67fc90b062f3ce86f3376b5618725 Mon Sep 17 00:00:00 2001 From: Sheefhuss Date: Wed, 2 Sep 2026 14:44:50 +0530 Subject: [PATCH 4/6] video formating --- .../Video/Video_Assignments.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Selenium_Automation_Group82-main/submissions/SheefaHussain_12023002023039;Aishwarya Banerjee_12023002023004;DebapriyaRoy_12023002022030;SomyadeepAdhikari_12023002023053/Video/Video_Assignments.md b/Selenium_Automation_Group82-main/submissions/SheefaHussain_12023002023039;Aishwarya Banerjee_12023002023004;DebapriyaRoy_12023002022030;SomyadeepAdhikari_12023002023053/Video/Video_Assignments.md index 676c434..39bbe66 100644 --- a/Selenium_Automation_Group82-main/submissions/SheefaHussain_12023002023039;Aishwarya Banerjee_12023002023004;DebapriyaRoy_12023002022030;SomyadeepAdhikari_12023002023053/Video/Video_Assignments.md +++ b/Selenium_Automation_Group82-main/submissions/SheefaHussain_12023002023039;Aishwarya Banerjee_12023002023004;DebapriyaRoy_12023002022030;SomyadeepAdhikari_12023002023053/Video/Video_Assignments.md @@ -1,14 +1,14 @@ ## **Selenium Installment and Troubleshooting** -[↑ Click Here](https://drive.google.com/file/d/1EzHeOPSG0tosbtQ2L5OeBeWiV4UYHfiK/view?usp=drivesdk) +[ Click Here⬈](https://drive.google.com/file/d/1EzHeOPSG0tosbtQ2L5OeBeWiV4UYHfiK/view?usp=drivesdk) ## **Assignment 1** -[↑ Click Here](https://drive.google.com/file/d/1w64CM8OtncPNQJo5ZQpEsuYCZmTfRd8U/view?usp=drivesdk) +[ Click Here⬈](https://drive.google.com/file/d/1w64CM8OtncPNQJo5ZQpEsuYCZmTfRd8U/view?usp=drivesdk) ## **Assignment 2** -[↑ Click Here](https://drive.google.com/file/d/1PBBvmZy0pBJ1CZwcHdZKrlA4aO_AU_cL/view) +[ Click Here⬈](https://drive.google.com/file/d/1PBBvmZy0pBJ1CZwcHdZKrlA4aO_AU_cL/view) ## **Assignment 3** -[↑ Click Here](https://drive.google.com/file/d/1WmQFR-dZCJuMQrCrPlGnKB1oy1-tP28g/view?usp=drivesdk) +[ Click Here⬈](https://drive.google.com/file/d/1WmQFR-dZCJuMQrCrPlGnKB1oy1-tP28g/view?usp=drivesdk) ## **Assignment 4** -[↑ Click Here](https://drive.google.com/file/d/1L0KeEeQWG4EEIOhxA1yeoZqLyalcZ1VA/view?usp=drivesdk) \ No newline at end of file +[ Click Here⬈](https://drive.google.com/file/d/1L0KeEeQWG4EEIOhxA1yeoZqLyalcZ1VA/view?usp=drivesdk) \ No newline at end of file From befb8b9cef8b57f37d53506a75d785986818a870 Mon Sep 17 00:00:00 2001 From: Sheefhuss Date: Wed, 2 Sep 2026 14:58:40 +0530 Subject: [PATCH 5/6] Update assignments with clickable links --- README.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index b5c80b0..5918828 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,9 @@ The assignments cover Selenium installation and troubleshooting, web element ide ## Assignments -### Assignment 1: Web Element Identification +Selenium Installment and troubleshooting : [ Click Here⬈](https://drive.google.com/file/d/1EzHeOPSG0tosbtQ2L5OeBeWiV4UYHfiK/view?usp=drivesdk) + +### Assignment 1: Web Element Identification [ Click Here⬈](https://drive.google.com/file/d/1w64CM8OtncPNQJo5ZQpEsuYCZmTfRd8U/view?usp=drivesdk) Identify and locate different web elements using: @@ -34,12 +36,11 @@ Identify and locate different web elements using: Identify multiple elements on a webpage using Selenium and work with the list of elements. -### Assignment 3: CSS Selector Challenge +### Assignment 3: CSS Selector Challenge [ Click Here⬈](https://drive.google.com/file/d/1WmQFR-dZCJuMQrCrPlGnKB1oy1-tP28g/view?usp=drivesdk) Locate web elements using CSS selectors, including wildcard selectors for elements with varying or dynamic attribute values. -### Assignment 4: Child Nodes Using CSS - +### Assignment 4: Child Nodes Using CSS [ Click Here⬈](https://drive.google.com/file/d/1L0KeEeQWG4EEIOhxA1yeoZqLyalcZ1VA/view?usp=drivesdk) Identify and locate child/nested web elements using CSS selectors and interact with the required elements. ## Reference From c2b6074045e4bf88f3ad71a045677eed7ed0cb43 Mon Sep 17 00:00:00 2001 From: Sheefhuss Date: Wed, 2 Sep 2026 15:00:36 +0530 Subject: [PATCH 6/6] Fix formatting of assignment headings in README --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 5918828..0228ccd 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ The assignments cover Selenium installation and troubleshooting, web element ide Selenium Installment and troubleshooting : [ Click Here⬈](https://drive.google.com/file/d/1EzHeOPSG0tosbtQ2L5OeBeWiV4UYHfiK/view?usp=drivesdk) -### Assignment 1: Web Element Identification [ Click Here⬈](https://drive.google.com/file/d/1w64CM8OtncPNQJo5ZQpEsuYCZmTfRd8U/view?usp=drivesdk) +### Assignment 1: Web Element Identification [ Click Here⬈](https://drive.google.com/file/d/1w64CM8OtncPNQJo5ZQpEsuYCZmTfRd8U/view?usp=drivesdk) Identify and locate different web elements using: @@ -32,7 +32,7 @@ Identify and locate different web elements using: - `By.LINK_TEXT` - `By.CLASS_NAME` -### Assignment 2: Multiple Element Identification +### Assignment 2: Multiple Element Identification [ Click Here⬈](https://drive.google.com/file/d/1PBBvmZy0pBJ1CZwcHdZKrlA4aO_AU_cL/view) Identify multiple elements on a webpage using Selenium and work with the list of elements. @@ -47,3 +47,4 @@ Identify and locate child/nested web elements using CSS selectors and interact w **Reference/Video Link:** [https://youtube.com/watch?v=v-l05NiSYcg&si=VrDme6znhbRZ_Dun] +