Session 5 - Verify Presence Of Fields in Selenium Java | Read Field Names from Excel & Verify on UI

Sdílet
Vložit
  • čas přidán 11. 09. 2024
  • ▶️ In this video, we will see the process of verifying the presence of fields on a web page using Selenium WebDriver and the Page Object Model (POM) framework. This tutorial demonstrates a data-driven approach by reading field names from an Excel sheet and asserting their presence with a custom Java method.
    ▶️ Step 1 - Create a Excel and add Field names you want to assert on different page in the different sheets.
    ▶️ Step 2 - Read data from Excel - For this we will create ExcelReader class and create method getFieldNamesFromExcel to read excel data and store in a ArrayList.
    ▶️ Step 3 - Create getElementByFieldName method to get the corresponding WebElement for Fields
    ▶️ Step 4 - First check the element state using getElementPresentState method and then use isDisplayed method
    ▶️ Step 5 - We will use Assert.assertTrue( ) so when all the fields are present then only this will pass otherwise assertion will fail even a single field is not shown.
    ⚡️ Full Playlist Link - Selenium Automation Framework using Java - • Automation Framework D...
    ⚡️ Most of videos are of around 30 Minutes. So you may play the video with 1.5x speed if you don't have that much time, but please try to watch completely so that you can understand framework design concepts and explain easily in the interviews. All the best.
    Thanks for watching! Happy coding and automating!
    ▶️ If you have any queries , questions or suggestions, please add in the comment. I will be happy to hear suggestions and feedback from you so that I can improve the same. Help your friends to learn automation by suggesting the channel. Thanks
    ======================================
    ***************AJ AUTOMATION*************
    ======================================
    Hi guys, Please share and Like the content whichever you find informative to reach more beginner candidates learning Test Automation. Thanks for your Support !!
    🔔 Learn automation from basic !! 🔔
    ✅ Let's Learn the Concept in 5 To 10 Mins :=
    • Test Automation Interv...
    ✅ Selenium series videos Playlist :=
    • Selenium tutorial for ...
    ✅ Maven Tool videos playlist :=
    • Maven Tool - Learn Bas...
    ✅ Selenium WebDriver Exceptions Playlist :=
    • Selenium WebDriver Exc...
    ✅ Selenium Grid With Docker:==
    • Selenium Grid With Doc...
    ✅ Jenkins Tool Series :==
    • Jenkins Tool Sessions ...
    ✅ Upload and Download Files in Selenium :=
    • Selenium WebDriver - U...
    ✅ Excel and CSV files operations :=
    • Excel and CSV -- Read ...
    ✅ Java Language Concepts :=
    • Java Language Concepts...
    ✅TestNG Framework Videos:=
    • TestNG Introduction an...
    ✅ Become Master in Xpath:=
    • Xpath Introduction
    ✅ Protractor series videos playlist :=
    • Let's Learn Protractor...
    ✅ Recent Uploads :=
    • Recent Uploaded Videos
    ✅ GitHub Repo:= github.com/aja...
    ⚡️ Thanks for your support !! ⚡️
    ======================================
    *************** Thanks for watching !!*************
    ======================================
    ⚡️ Keep Learning...Keep Sharing...Keep Growing. ⚡️
    #automationframework #seleniumframework #datadrivenframework

Komentáře • 2