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

  Рет қаралды 104,165

SDET Adda For QA Automation

SDET Adda For QA Automation

Күн бұрын

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:
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

Пікірлер: 125
@testing24x7
@testing24x7 Жыл бұрын
You are awesome! Thanks for clearing my doubts on selenium framework. Explanation was very simple and organized and step by steps. 👍
@sdetadda
@sdetadda Жыл бұрын
Welcome
@akshaywanjari2279
@akshaywanjari2279 2 ай бұрын
@@sdetadda can we get github link to clone whole project ??
@JAVA_TECH160
@JAVA_TECH160 10 күн бұрын
​@@sdetaddabro same can you make appium android java playlist video course with project
@SP-vq7tg
@SP-vq7tg 3 күн бұрын
Thankyou so much Raghav Sir!!! I donno how to thankyou. I am really excited to see my very first attempt to design framework and automate a website work in the first run itself without any error after blindly following your video. You are great. Please post more such beginner level vidoes.. Would be of great help.. New subscriber here..
@Organicfarming_SavayavaKrishi
@Organicfarming_SavayavaKrishi 7 ай бұрын
You are gem. I don't know how I found this channel. Fantastic explanation brother
@sandhyarampure6256
@sandhyarampure6256 6 ай бұрын
Very informative learnt how to build framework from the scratch Thankyou so much sir
@Beasthades
@Beasthades Жыл бұрын
The way you explain framework that is awesome. Its help me to understand framework very well. ❤
@sdetadda
@sdetadda Жыл бұрын
Nice to hear that 😊
@user-kp4rz4eg1g
@user-kp4rz4eg1g 11 ай бұрын
Really very very helpful session on framework as of now I found. Thanks for such a great video, this helped me a lot and cleared all my doubts The way you explained it from scratch with the real scenario is awesome.
@ashokn1423
@ashokn1423 Жыл бұрын
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
@sdetadda Жыл бұрын
Welcome. Please help your friends by suggesting this channel to them.
@rajeshvepada3171
@rajeshvepada3171 Жыл бұрын
@@sdetadda Brother nice explanation brother Brother will you please do a video regarding installation of ATU Test tecoreder in the selenium from the scratch which is useful for recording the screen.
@saraniyasathisvari5443
@saraniyasathisvari5443 11 ай бұрын
Expecting Appium framework from you sir. This was amazing. The best framework explanation I have come across.
@akshaywanjari2279
@akshaywanjari2279 2 ай бұрын
let me know if anyone get appium frmaework
@stutitomar6230
@stutitomar6230 Жыл бұрын
Best video on Selenium framework till date.. thank you so much for the efforts.
@BirenkumarSoni
@BirenkumarSoni 5 ай бұрын
Much appreciated your demonstration. Very very useful:)
@sandeepsan3476
@sandeepsan3476 Жыл бұрын
Hey thanks for the video it is really helped me to understand the complete framework in short duration ✌
@Baskar_ProCar
@Baskar_ProCar 5 ай бұрын
It's very usefull Thank you so much bro..🤩
@qatester6425
@qatester6425 Жыл бұрын
Great video, can you share the repository of the project? Thank you.
@riyashukla1717
@riyashukla1717 Жыл бұрын
It's very helpful to understand
@srikanthyadav5246
@srikanthyadav5246 Жыл бұрын
Thanks for the video
@sdetadda
@sdetadda Жыл бұрын
Welcome
@srikanthyadav5246
@srikanthyadav5246 Жыл бұрын
@@sdetadda sir can you make a video of log4j and also provide properties file.... if possible
@sdetadda
@sdetadda Жыл бұрын
@@srikanthyadav5246 Here is the video I've uploaded on log4j2 for Selenium webdriver - kzbin.info/www/bejne/iJy7hX-aZcyrg8k
@user-ft8to4js5v
@user-ft8to4js5v 6 ай бұрын
Very nice bro, keep them coming..
@talentvista1119
@talentvista1119 Жыл бұрын
Very very useful. Thank you so much.
@sdetadda
@sdetadda Жыл бұрын
Glad it was helpful!
@preciouspearl8583
@preciouspearl8583 8 ай бұрын
your efforts are appreciatable sir please provide sourcecode without sourcecode its hard to learn
@naveenthippanaboina8712
@naveenthippanaboina8712 9 ай бұрын
Explanation was very good and please share code in description
@Rehana1238
@Rehana1238 Жыл бұрын
Thank you so much for the explanation
@rk498r
@rk498r 11 ай бұрын
Can you please share the repository link for this awesome framework? Thank you!
@avishekroy
@avishekroy Жыл бұрын
Thanks for the detailed framework explanation. Much appreciated. :) Is it possible to share the repository? That will be of great help. Thanks again.
@Moto_telugu
@Moto_telugu 10 ай бұрын
very helpful, thank you! i have a small doubt so when we create testcase 2 and convert it into testngclass it will generate its xml in same testng.xml and we can pass data there? for newly created test case two?
@mdsalekinnewaz3093
@mdsalekinnewaz3093 5 ай бұрын
You are awesome, thanks for making proper explanation, i have a request,please share the github repo for this project.
@adityatripathi3379
@adityatripathi3379 6 ай бұрын
2 problems I encountered while implementing this Framework in my project. 1. How to add screenshots at log level as well, since you didn't define any method as generic to capture the Screenshot? 2. If you write multiple tests in Test file, then after evey test, new chrome browser window openes, which should not be the case. Please provide solutions to these.
@rasik7000
@rasik7000 6 ай бұрын
Thank you for this! Very helpful. Could you please provide a link for the files so it is easy for everyone to follow along?
@SineQuaNon1
@SineQuaNon1 Жыл бұрын
Many thanks for this great video. The folders that you created at the beginning, are they Directory in IntelliJ?
@sdetadda
@sdetadda Жыл бұрын
Thank you and Yes you are right, Those are directories created for the selenium framework developed using Eclipse IDE.
@KenjiMiller
@KenjiMiller 11 ай бұрын
Amazing video, thank you so much
@prasadgoud1295
@prasadgoud1295 Жыл бұрын
Hey thanks for the video it is really helped me to understand the complete framework in short duration 💯,if possible could you please send the code for this framework..?
@sdetadda
@sdetadda Жыл бұрын
Noted
@sunnysinha8688
@sunnysinha8688 5 күн бұрын
Hey, I'm unable to import all these packages, errors are appearing, proper suggestions aren't also available form eclipse, what should I do ?, can I get any link to your source code ?
@lakshminarayanasindiri9586
@lakshminarayanasindiri9586 2 ай бұрын
Why did u written extent report and listeners code in base test itself . Can't it be written in another place?
@user-lt1nj3jl9o
@user-lt1nj3jl9o 6 ай бұрын
Good Explanation.. How to add Screenshot in Extent Report for Every steps
@sdetadda
@sdetadda 4 ай бұрын
Will upload soon
@itserror96bish36
@itserror96bish36 11 ай бұрын
Thanks a lot brother, Is there repo link to refer this project ?
@asifmohammed6214
@asifmohammed6214 7 ай бұрын
Thanks a lot for sharing this knowledge with us, it would be great help if you can share the github link for this framework.
@sridharmurari3007
@sridharmurari3007 10 ай бұрын
One question does Base test to be in src/main or src/test? because all test to be in test folder ?
@rajivgift123
@rajivgift123 3 ай бұрын
An error stating" PDFBox IOException: End of File, expected line" is displayed while automating PDF reports
@alokkumarsingh2766
@alokkumarsingh2766 Жыл бұрын
my control is not connecting to TestCase1 class (i.e. after launching the browser, test case is getting finish, it not calling my @Test method). any thoughts?
@sdetadda
@sdetadda Жыл бұрын
Please follow the video thoroughly to get it fixed on your own; share the stack trace with me otherwise; will take a look and suggest.
@subhajitmandal9196
@subhajitmandal9196 Ай бұрын
Awesome video.. Could you please provide us all the codes for this in Git-hub repository .
@sdetadda
@sdetadda Ай бұрын
Please follow the video till the end and let me know if you have any issues creating the Selenium framework for webui testing.
@saakdiahamimi7lppp8axlyi48
@saakdiahamimi7lppp8axlyi48 11 ай бұрын
Thanks for the video. Do you have any repo for this code please?
@balajisanatan8126
@balajisanatan8126 Жыл бұрын
Awesome. Can you share the repository....
@user-jt6bt1jq1x
@user-jt6bt1jq1x Жыл бұрын
Hi ..How can I fix? " The method size() is undefined for the type WebElement" I was following your Video and stuck up on this
@sandeepbodkhe8974
@sandeepbodkhe8974 Жыл бұрын
Hi, Could you please provide code for reference ?
@user-rs1gl7sr8i
@user-rs1gl7sr8i Жыл бұрын
Can i get the Git hub link for this Repo?
@manikumar-ix7sr
@manikumar-ix7sr Жыл бұрын
Can you please provide the github link of this project ,as many ppl asked about the same. Can you please provide the gitub link of this project??
@imrankhanlodhimd
@imrankhanlodhimd 5 ай бұрын
any specific reason to create Constants as Interface?
@SSS3-10-12
@SSS3-10-12 Жыл бұрын
Could you please explain why we are not using page Factory?
@grabieldelanieved.380
@grabieldelanieved.380 Жыл бұрын
x2
@sdetadda
@sdetadda Жыл бұрын
There will be a separate video for page factory. Stay tuned! thanks.
@DadaKhadarbasha
@DadaKhadarbasha Жыл бұрын
Great explanation, Can i get the repo template link?
@rokkingrronak4464
@rokkingrronak4464 Жыл бұрын
Hi sir can u plz let me know how can we access credentials stored in keyooass software using selenium java
@sdetadda
@sdetadda Жыл бұрын
Noted, Will look into this scenario and upload the video on this.
@grabieldelanieved.380
@grabieldelanieved.380 Жыл бұрын
Please could you share the repository with the solution? thanks!
@sdetadda
@sdetadda Жыл бұрын
Will push the code to git or to some common path soon and provide the link in description of this video.
@user-jr8ee8ps3e
@user-jr8ee8ps3e 9 ай бұрын
​@@sdetaddacould you please provide the link?
@user-cf1ow2jn9x
@user-cf1ow2jn9x 10 ай бұрын
Hi @sdetadda , Lecture is very helpfull. Please share Repo / Code. Thanks.
@FunMasti
@FunMasti Жыл бұрын
kindly share repository link please
@sdetadda
@sdetadda Жыл бұрын
Will push the code to git or to some common path soon.
@T3tu21
@T3tu21 5 ай бұрын
do you have a repo for this project?
@RamatEbudola
@RamatEbudola Жыл бұрын
I got lost immediately your initialised the extent report. Please push your code to repo.
@sdetadda
@sdetadda Жыл бұрын
Will push the code to git or to some common path soon.
@asif4world
@asif4world 4 ай бұрын
@@sdetadda Hi, awesome explanation, we are waiting for the github link. Please share with us so that we can practice.
@deepakhire4970
@deepakhire4970 29 күн бұрын
Could you please provide github link of this Demo project
@anneydigvijay1536
@anneydigvijay1536 Жыл бұрын
Hi, why should we use assertTrue in page objects classes? Is it recommend?
@sdetadda
@sdetadda Жыл бұрын
Yeah, we can use.Nothing wrong with that.
@anneydigvijay1536
@anneydigvijay1536 Жыл бұрын
@@sdetadda I think it is not recommended
@sdetadda
@sdetadda Жыл бұрын
I did not say it is recommended or not recommended, I said it can be used within page objects classes as well and there is nothing wrong if you want to check on or validate something then and there in the framework; user/automation tester usually put assertion in test script when the objective is more on getting number of pass and failed tests case. I hope it is clear now. Please let me know if you have any further queries, thanks. :)
@laxman-fh6el
@laxman-fh6el Жыл бұрын
Please provide zip file of this framework link in comment section or description section
@user-jt6bt1jq1x
@user-jt6bt1jq1x Жыл бұрын
"The method size() is undefined for the type WebElement." how can I fix this? .I was flowing your video
@sdetadda
@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;
@chhandakbhattacharya6149
@chhandakbhattacharya6149 5 ай бұрын
Any git repo for this framework?
@timilehinoni
@timilehinoni 6 ай бұрын
Hi, I keep getting n error, SuiteListerner cannot be cast to class org.testng.ItestNGlistener, whenever I try to also remove the suite listener, it keeps skipping all my tests
@githinjibonface8486
@githinjibonface8486 Жыл бұрын
Can i use page Factory model on my project?
@sdetadda
@sdetadda Жыл бұрын
Yes, you can.
@githinjibonface8486
@githinjibonface8486 Жыл бұрын
@@sdetadda Thank you
@Well_of_wisdom
@Well_of_wisdom Жыл бұрын
Hi. I am getting this error "TakesScreenShot cannot be resolved to a type" in the SuiteListener class File f1 = ((TakesScreenShot)Base.driver).getScreenshotAs(OutputType.FILE); import org.openqa.selenium.TakesScreenshot;
@Well_of_wisdom
@Well_of_wisdom Жыл бұрын
no worries I can see where i went wrong.
@DadaKhadarbasha
@DadaKhadarbasha Жыл бұрын
Any update on the Repo?
@stormwindyt
@stormwindyt Жыл бұрын
possible could you please send the code for this framework..?
@NarendraMargam
@NarendraMargam Ай бұрын
Hi Can u provide full code of framework
@dasarianveshitha7386
@dasarianveshitha7386 Жыл бұрын
Can you give this code for git hub it's more useful
@sdetadda
@sdetadda Жыл бұрын
Will push the code to git or some common path soon.
@FhdRahmN
@FhdRahmN Жыл бұрын
why its still showing errors for after importing in baseTest
@sdetadda
@sdetadda Жыл бұрын
Please follow the video thoroughly to get it fixed on your own; share the stack trace with me otherwise; will take a look and suggest.
@piyumidanthanarayana9750
@piyumidanthanarayana9750 5 ай бұрын
Can you share this mini project ?
@kotaanirudh1388
@kotaanirudh1388 6 ай бұрын
please provide the code how can we practice without code
@mailvaganamvickram3486
@mailvaganamvickram3486 8 ай бұрын
I am Getting NO appenders could be found for logger (org.testingnf.TestNG) and Suite Total tests run: 1, Passes: 0, Failures: 0, Skips: 1 Configuration Failures: 1, Skips: 3 Can you please help me with this ?
@sumanmukherjee7161
@sumanmukherjee7161 Жыл бұрын
can you please share the github link for this project
@sdetadda
@sdetadda Жыл бұрын
Will push the code to git or to some common path soon and provide the link in description of this video.
@akhtarkazi4085
@akhtarkazi4085 7 ай бұрын
Please steps for dependency
@siddhidixit4687
@siddhidixit4687 Ай бұрын
can u share source code of framework?
@user-wy9iq6jb2t
@user-wy9iq6jb2t Жыл бұрын
Do you have any repo for this code? Thanks!
@sdetadda
@sdetadda Жыл бұрын
Will push the framework code to git or some common path soon.
@Mr.Mallickind
@Mr.Mallickind 2 ай бұрын
Hii could you share this code with me
@shashikanthpalthya6047
@shashikanthpalthya6047 Жыл бұрын
facing an error java.lang.Error: Unresolved compilation problem: Cannot switch on a value of type String for source level below 1.7. Only convertible int values or enum variables are permitted
@sdetadda
@sdetadda Жыл бұрын
Did it work with 1.7 or higher? Please confirm. Thanks.
@daniellmcgeorge8579
@daniellmcgeorge8579 3 ай бұрын
please share this project repo
@vipulagarwal7053
@vipulagarwal7053 6 ай бұрын
I am getting error java.lang.NullPointerException: Cannot invoke "org.openqa.selenium.TakesScreenshot.getScreenshotAs(org.openqa.selenium.OutputType)" because "com.core.baseTest.BaseTest.driver" is null.. If testng.xml has listener but if i am not using listener then i am able to run
@kalaivanan8413
@kalaivanan8413 2 ай бұрын
i am also facing the same exception , have you resolved it? if yes please let me know
@patilsiddarood
@patilsiddarood 6 ай бұрын
Hi Team, i am getting below error. Can anyone help me please [RemoteTestNG] detected TestNG version 7.4.0 FAILED CONFIGURATION: @BeforeMethod BeforeMethodMethod org.testng.TestNGException: Method BeforeMethodMethod requires 2 parameters but 1 were supplied in the BeforeMethod annotation. at org.testng.internal.Parameters.checkParameterTypes(Parameters.java:447) at org.testng.internal.Parameters.createParametersForMethod(Parameters.java:353) at org.testng.internal.Parameters.createParameters(Parameters.java:700) at org.testng.internal.Parameters.createConfigurationParameters(Parameters.java:168) at org.testng.internal.ConfigInvoker.invokeConfigurations(ConfigInvoker.java:302) at org.testng.internal.TestInvoker.runConfigMethods(TestInvoker.java:700) at org.testng.internal.TestInvoker.invokeMethod(TestInvoker.java:527) at org.testng.internal.TestInvoker.invokeTestMethod(TestInvoker.java:173) at org.testng.internal.MethodRunner.runInSequence(MethodRunner.java:46) at org.testng.internal.TestInvoker$MethodInvocationAgent.invoke(TestInvoker.java:824) at org.testng.internal.TestInvoker.invokeTestMethods(TestInvoker.java:146) at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:146) at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:128) at java.base/java.util.ArrayList.forEach(ArrayList.java:1511) at org.testng.TestRunner.privateRun(TestRunner.java:794)
@sandeepsan3476
@sandeepsan3476 Жыл бұрын
I wanted use below workflow "wait.until(ExpectedConditions.visibilityOfElementLocated(locator));" (Error = "driver" is null) Action class in this framework but i am getting the error like driver:null (Error = "driver" is null) Taking multiple screenshot for every step (Error = java.lang.NullPointerException: Cannot invoke "org.openqa.selenium.TakesScreenshot.getScreenshotAs(org.openqa.selenium.OutputType)" because "driver" is null) So can you please help me out by showing how we can add above method and class in this framework so that I can use so across multiple class
@rajivgift123
@rajivgift123 3 ай бұрын
An error stating" PDFBox IOException: End of File, expected line" is displayed while automating PDF reports
@kalaivanan8413
@kalaivanan8413 2 ай бұрын
Hi, I got below exception, java.lang.NullPointerException: Cannot invoke "org.openqa.selenium.TakesScreenshot.getScreenshotAs(org.openqa.selenium.OutputType)" because "Base.BaseTest.driver" is null Not able to resolve this
@jigardubey4549
@jigardubey4549 16 күн бұрын
facing same issue, did you get resolution
@sandeepsan3476
@sandeepsan3476 Жыл бұрын
Hi i am getting the below error while running the code [sendKeys is not working] java.lang.AssertionError: Couldn't find resource: jquery.min.js
@sdetadda
@sdetadda Жыл бұрын
Can you send me the snippet where exactly you are getting the errors?
@sandeepsan3476
@sandeepsan3476 Жыл бұрын
I wanted use "wait.until(ExpectedConditions.visibilityOfElementLocated(locator));" and Action class in this framework but i am getting the error like driver:null So can you please help me out by showing how we can add above method and class in this framework so that I can use so across multiple class
How to Automate Date Pickers and Calendars in Selenium using Java
37:09
SDET Adda For QA Automation
Рет қаралды 8 М.
How To Explain Test Automation Framework In Interviews For Selenium
13:42
Пришёл к другу на ночёвку 😂
01:00
Cadrol&Fatich
Рет қаралды 6 МЛН
Шок. Никокадо Авокадо похудел на 110 кг
00:44
Dad gives best memory keeper
01:00
Justin Flom
Рет қаралды 21 МЛН
PEDRO PEDRO INSIDEOUT
00:10
MOOMOO STUDIO [무무 스튜디오]
Рет қаралды 27 МЛН
Selenium with Cucumber 7.x - Java BDD Framework - Mini Project | Crash Course
46:56
14. Extent Reports in java selenium framework
26:40
QA Automation Classes
Рет қаралды 4,8 М.
How To Explain Selenium Automation Framework In Interviews
12:03
RD Automation Learning
Рет қаралды 200 М.
Explain OOPs Concept in Selenium Automation Framework
11:17
The Testing Academy
Рет қаралды 30 М.
Basic Selenium Project with Maven, Test NG and Page object Model
52:47
Automation Fraternity - "The DevOpsClub" Entity
Рет қаралды 49 М.
Пришёл к другу на ночёвку 😂
01:00
Cadrol&Fatich
Рет қаралды 6 МЛН