Back Building Selenium Java Framework from Scratch using Page Object Model | TestNG | Mini Project

60-90
Published At: 2023-01-15
Search Query: Java Class Methods,Java Create Write Files,Java Get Started,Java Method Parameters,Java Method Parameters
Tags: selenium framework selenium webdriver java page object model framework in selenium page object model in selenium #retryfailedtestcases Execution of Suite on Multiple Browser Automation Framework Introduction - Selenium-Webdriver Hybrid Framework in Selenium Selenium Framework Data Keyword & Hybrid Driven Set Up Project for Selenium Automation Framework selenium framework from scratch selenium framework using java selenium framework tutorial selectorshub #crackinterview
In this video, we will learn how to make a #selenium webdriver java automation framework from scratch. This mavenised framework is based on Page object model, it supports multiple browser execution, it takes the screenshot whenever a test case fails and it retries the failed test cases.
This video will help you to learn and make automation framework for you and your #organisation and will also help you to #crack interviews!

This video will help you understand the following concepts practically-
#framework folder structure.
#POM (Page Object Model)
#MiniProject
#Javalogics
#Framework structure
#EventReports
#TestNG.xml
#Execution of #suite on #multiple #browser
#retry Failed Test case
#Create ElementFetch class to #overwride the existing Selenium Method.
Implement various TestNG Intefaces and their method for real usages.

Websites references:
https://freecrm.com/ website is used for creating a mini/demo project using POM

#extentreports #testng #framework #selenium #seleniumframework #maven #retry #RetryAnalizer #SuiteListener #POM #pageobjectmodel #seleniumjavaframework #seleniumframework #elements #xpath #selectorshub #runfailedtestcases #retryfailedtestcase #interface #webdriver #crackinterview #interviewquestions
logo Ask VidTutorAssistant
Comment
or
Question
Your name
Comments with generated responses
@user-jt6bt1jq1x
2023-07-24

"The method size() is undefined for the type WebElement." how can I fix this? .I was flowing your video

@sdetadda

Check to see if

ElementFetch class has below package and import at beginning of the class-



package utils;

import java.util.List;



and also if LoginPageEvents has imported ElementFetch as below-



import utils.ElementFetch;

VidTutorAssistant (GPT-4)

Hi @user-jt6bt1jq1x, thank you for your comment. Apologies for any confusion caused. The method size() is actually used for list of web elements rather than a single WebElement. So, if you are trying to use the size() method, probably you are dealing with list of elements rather than a single element. Try using `findElements()` instead of `findElement()`, as `findElements()` returns a list. This might resolve the error you're facing. Keep experimenting and learning. If you have any other questions, please feel free to ask.


@testing24x7
2023-01-15

You are awesome! Thanks for clearing my doubts on selenium framework. Explanation was very simple and organized and step by steps. 👍

@sdetadda

Welcome

VidTutorAssistant (GPT-4)

Thank you so much @testing24x7! Really glad to hear that you found the video helpful. I believer in simplifying topics and breaking them down systematically, step by step, in order to make things easy to grasp. Always remember, no question is too small or too basic! Keep exploring more videos on the channel and let's continue our journey in learning together! Happy learning! 😊👍


@ashokn1423
2023-02-05

Framework explained very well and any one watch u r video can able to develop end to end real time framework on their need, Thanks a lot for your valuable time and video .

@sdetadda

Welcome. Please help your friends by suggesting this channel to them.

VidTutorAssistant (GPT-4)

Thank you so much, @ashokn1423! Your words are truly motivating. I am really glad to hear that you found the framework explanation helpful and you're able to apply it to real-time framework development. We aim to make complex processes easy and accessible to everyone. Please continue watching and learning from my channel. Feel free to put forward any queries or requirements you might have in the future for our upcoming videos. Keep learning and happy automation!