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

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

AJ AUTOMATION

54 года назад

285 Просмотров

▶️ 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 - https://www.youtube.com/playlist?list=PLlc_LrU50tljADn-fgLmaXE5P_MhBuI3T

⚡️ 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 :=
https://www.youtube.com/playlist?list=PLlc_LrU50tljSA5wcIpKSYRDrGX3iLQQQ

✅ Selenium series videos Playlist :=
https://www.youtube.com/playlist?list=PLlc_LrU50tliMZrnSa0a9geljzCijPDfq

✅ Maven Tool videos playlist :=
https://www.youtube.com/playlist?list=PLlc_LrU50tlgWOrybr-Ppffg6T_1cXeUb

✅ Selenium WebDriver Exceptions Playlist :=
https://www.youtube.com/playlist?list=PLlc_LrU50tlisWfvF3qXmFTaTKDYkib_p

✅ Selenium Grid With Docker:==
https://www.youtube.com/playlist?list=PLlc_LrU50tliN8PZ7Xk41NwrnelPHchSk

✅ Jenkins Tool Series :==
https://youtube.com/playlist?list=PLlc_LrU50tljcyDeTK9JfVpmPyaigzXua

✅ Upload and Download Files in Selenium :=
https://www.youtube.com/playlist?list=PLlc_LrU50tlhD9ezHt9O-mlWjiu3XyS3U

✅ Excel and CSV files operations :=
https://www.youtube.com/playlist?list=PLlc_LrU50tlifVlnHI4ph5XuY1_pNusBy

✅ Java Language Concepts :=
https://youtube.com/playlist?list=PLlc_LrU50tliq2RV-1Yhr2IjJ5RqXCQjU

✅TestNG Framework Videos:=
https://www.youtube.com/watch?v=-KEg20O6Mxs&list=PLlc_LrU50tlgMVcdTBSZXt34JavaOEY8G

✅ Become Master in Xpath:=
https://www.youtube.com/watch?v=Wv1hHLhtnzw&list=PLlc_LrU50tlhzCzcfnY2S2vXnkFWorlT-

✅ Protractor series videos playlist :=
https://www.youtube.com/playlist?list=PLlc_LrU50tlim53VdVwAmCnBr8M2x38y8

✅ Recent Uploads :=
https://youtube.com/playlist?list=PLlc_LrU50tljOnB-LUofJpBkeSMskcQVd

✅ GitHub Repo:= https://github.com/ajautomation

⚡️ Thanks for your support !! ⚡️

======================================
**************** Thanks for watching !!**************
======================================


⚡️ Keep Learning...Keep Sharing...Keep Growing. ⚡️


#Automation
#testautomation
#SeleniumWebDriver
#javatestingframework
#seleniumautomachinetesting
#seleniumwebdriver
#seleniumautomation
#testing
#seleniumtutorialforbeginners
#automationframework
#seleniumframework
#softwaretesting
#java
#testng
#eclipse
#maven
#selenium4
#seleniumtutorials
#seleniumjava
#seleniumautomation

Тэги:

#read_excel #Verify_Presence_of_Fields_in_Selenium #data_driven_in_selenium #data_driven_testing_using_selenium #data_driven_testing_in_selenium #selenium_framework_java #selenium_java_frameowrk #page_object_model_framework #selenium_pom_framework_with_maven #selenium_pom_framework_from_scratch #selenium_pom_framework #selenium_java_pom_framework #pom_framework_in_selenium_webdriver_java #selenium_webdriver_with_java #selenium_webdriver_tutorial
Ссылки и html тэги не поддерживаются


Комментарии: