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..
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.
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 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.
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?
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..?
Hello Raghav sir Please explain me why did u use “src/main/java” folder to create Selenium project Instead of “src/test/java” . It is confusing me Thanks
Hello Sir, In above code how to execute multiple test cases? I have configured the code according to video and also I can able to run the code but if i add multiple test cases then only one test case get executed other get skipped.. please sir do let me know if you have suggestions.
Thanks for reply, I do got the line where test case get skipped when I debug code the skip happened on BaseTest Class on following line logger = extent.createTest(testMethod.getName());
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. :)
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.
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?
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 ?
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;
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
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 ?
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
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;
I am getting this errror :AILED CONFIGURATION: @BeforeMethod base.BaseTest.beforeMethodMethod org.testng.TestNGException: Parameter 'browser' is required by BeforeMethod on method beforeMethodMethod but has not been marked @Optional or defined: Can you please guide how it can be resolve sirji??
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
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
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)
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
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
I am getting this error : AILED CONFIGURATION: @BeforeMethod base.BaseTest.beforeMethodMethod org.testng.TestNGException: Parameter 'browser' is required by BeforeMethod on method beforeMethodMethod but has not been marked @Optional or defined. Can you confirm me how can I resolved it if you faced or if you know
You are awesome! Thanks for clearing my doubts on selenium framework. Explanation was very simple and organized and step by steps. 👍
Welcome
@@sdetadda can we get github link to clone whole project ??
@@sdetaddabro same can you make appium android java playlist video course with project
Very informative learnt how to build framework from the scratch Thankyou so much sir
You are gem. I don't know how I found this channel. Fantastic explanation brother
Expecting Appium framework from you sir. This was amazing. The best framework explanation I have come across.
let me know if anyone get appium frmaework
Best video on Selenium framework till date.. thank you so much for the efforts.
Much appreciated your demonstration. Very very useful:)
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..
All the best.
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.
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 .
Welcome. Please help your friends by suggesting this channel to them.
@@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.
The way you explain framework that is awesome. Its help me to understand framework very well. ❤
Nice to hear that 😊
It's very usefull Thank you so much bro..🤩
Very clear explanation👍
Thanks for the explanation!!!
Hey thanks for the video it is really helped me to understand the complete framework in short duration ✌
It's very helpful to understand
Very nice bro, keep them coming..
More to come!
Great video, can you share the repository of the project? Thank you.
Thanks for the video
Welcome
@@sdetadda sir can you make a video of log4j and also provide properties file.... if possible
@@srikanthyadav5246 Here is the video I've uploaded on log4j2 for Selenium webdriver - th-cam.com/video/RkXTLd0gxMg/w-d-xo.html
Very very useful. Thank you so much.
Glad it was helpful!
Thank you so much for the explanation
You are awesome, thanks for making proper explanation, i have a request,please share the github repo for this project.
your efforts are appreciatable sir please provide sourcecode without sourcecode its hard to learn
Explanation was very good and please share code in description
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?
Amazing video, thank you so much
Can you please share the repository link for this awesome framework? Thank you!
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..?
Noted
Thanks for the detailed framework explanation. Much appreciated. :)
Is it possible to share the repository? That will be of great help.
Thanks again.
Many thanks for this great video. The folders that you created at the beginning, are they Directory in IntelliJ?
Thank you and Yes you are right, Those are directories created for the selenium framework developed using Eclipse IDE.
Your voice❤🫣 also the tutorial 🎉
The way you explain framework . Please share GIThub code URL for all sessions
Good Explanation.. How to add Screenshot in Extent Report
for Every steps
Will upload soon
Sir if i hate to test loginpage , dashboard page, myinfo page so i have to create page object model for each page????
Hello Raghav sir
Please explain me why did u use
“src/main/java” folder to create Selenium project
Instead of “src/test/java” . It is confusing me
Thanks
Thank you for this! Very helpful. Could you please provide a link for the files so it is easy for everyone to follow along?
Why did u written extent report and listeners code in base test itself . Can't it be written in another place?
Hello sir, can you share the link of the videos where you have explain about the code that you are copying from the notepad at 5.32 minutes of video.
Awesome video.. Could you please provide us all the codes for this in Git-hub repository .
Please follow the video till the end and let me know if you have any issues creating the Selenium framework for webui testing.
Hello Sir,
In above code how to execute multiple test cases? I have configured the code according to video and also I can able to run the code but if i add multiple test cases then only one test case get executed other get skipped.. please sir do let me know if you have suggestions.
Use testng.xml
Thanks for reply, I do got the line where test case get skipped when I debug code the skip happened on BaseTest Class on following line
logger = extent.createTest(testMethod.getName());
Thanks a lot brother, Is there repo link to refer this project ?
Thanks for the video. Do you have any repo for this code please?
Thanks a lot for sharing this knowledge with us, it would be great help if you can share the github link for this framework.
Hi, why should we use assertTrue in page objects classes? Is it recommend?
Yeah, we can use.Nothing wrong with that.
@@sdetadda I think it is not recommended
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. :)
Awesome. Can you share the repository....
Could you please explain why we are not using page Factory?
x2
There will be a separate video for page factory. Stay tuned! thanks.
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.
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?
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.
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 ?
One question does Base test to be in src/main or src/test? because all test to be in test folder ?
It's up to you. But for the better convention it is wise to keep the test cases in the src/test/java folder
Please could you share the repository with the solution? thanks!
Will push the code to git or to some common path soon and provide the link in description of this video.
@@sdetaddacould you please provide the link?
Hi, Could you please provide code for reference ?
Can i get the Git hub link for this Repo?
any specific reason to create Constants as Interface?
An error stating" PDFBox IOException: End of File, expected line" is displayed while automating PDF reports
Hi @sdetadda , Lecture is very helpfull. Please share Repo / Code.
Thanks.
do you have a repo for this project?
Can i use page Factory model on my project?
Yes, you can.
@@sdetadda Thank you
Hi sir can u plz let me know how can we access credentials stored in keyooass software using selenium java
Noted, Will look into this scenario and upload the video on this.
please help me, i can't access the tutorial ninja demo sir 🙏
Great explanation, Can i get the repo template link?
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??
Any git repo for this framework?
Hi ..How can I fix? " The method size() is undefined for the type WebElement" I was following your Video and stuck up on this
Same I am also stuck, any solution?
Could you please provide github link of this Demo project
Any update on the Repo?
kindly share repository link please
Will push the code to git or to some common path soon.
"The method size() is undefined for the type WebElement." how can I fix this? .I was flowing your video
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;
Can you give this code for git hub it's more useful
Will push the code to git or some common path soon.
possible could you please send the code for this framework..?
I got lost immediately your initialised the extent report. Please push your code to repo.
Will push the code to git or to some common path soon.
@@sdetadda Hi, awesome explanation, we are waiting for the github link. Please share with us so that we can practice.
Do you have any repo for this code? Thanks!
Will push the framework code to git or some common path soon.
Can you share this mini project ?
Please steps for dependency
can you please share the github link for this project
Will push the code to git or to some common path soon and provide the link in description of this video.
why its still showing errors for after importing in baseTest
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.
Hi Can u provide full code of framework
please provide the code
how can we practice without code
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
Did it work with 1.7 or higher? Please confirm. Thanks.
Hii could you share this code with me
Please provide zip file of this framework link in comment section or description section
can u share source code of framework?
please share this project repo
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 ?
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
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;
no worries I can see where i went wrong.
I am getting this errror :AILED CONFIGURATION: @BeforeMethod base.BaseTest.beforeMethodMethod
org.testng.TestNGException:
Parameter 'browser' is required by BeforeMethod on method beforeMethodMethod but has not been marked @Optional or defined: Can you please guide how it can be resolve sirji??
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
Can you send me the snippet where exactly you are getting the errors?
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
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
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)
An error stating" PDFBox IOException: End of File, expected line" is displayed while automating PDF reports
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
i am also facing the same exception , have you resolved it? if yes please let me know
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
facing same issue, did you get resolution
I am getting this error : AILED CONFIGURATION: @BeforeMethod base.BaseTest.beforeMethodMethod
org.testng.TestNGException:
Parameter 'browser' is required by BeforeMethod on method beforeMethodMethod but has not been marked @Optional or defined. Can you confirm me how can I resolved it if you faced or if you know