Not everyone who has a decent subject knowledge can teach a lay man like me and you have made it so simple by the way you have taught this concept.excellent explanation sir.thank you!
awesome video....i am from electronics background n i tried many times but i din get even single word ever....i was very depressed but your video helped me alot....i understand all these things you have explained.......so Thanks alot Mukesh thank you so much
I have seen many tutorials for basic Java learning but only your tutorial helped me to understand the basic clearly.your teaching style is very simple and comprehensive.Many many thanks to you.
Mukesh ,.. Thanq so so much... I had gone through many videos, but nothing worth when I compare it with your tutorials. I am a novice when it comes to automation, coding and script . Now I feel confident. Thanq Bro...
Thanks a ton mukesh for such a wonderful explanation...... it is precise and straight forward for new comers and people from non it/cs background can easily understand.
i was struggling for basic java concepts even after working on selenium for more than a year. but this video really helped me to get over all the confusions on basic java concepts. thanks a lot, your video made it supereasy :p. just a single suggestion, please arrange all your videos in a proper sequence or give them a number so that it would be easy for beginner who doesn't know from which topic to start.
Hi Sampada, Your comment made my day. I am glad that my videos are helping to understand Java. I have planned few more videos on JAVA and after that I will arrange them in order.
Hi Mukesh, I could have given 10 thumbs to this video if I could. Its very clear and cut to the point, the way you have explained. thanks you very much.
Hi Mukesh, this video help me to clear all my concepts regarding classes,object,static and non-static function. thank you very much, you are doing great job..:)
Hey Mukesh.. I must say that person like me basically from non-technical background also learning lot from your videos. Just a request can u please post basic java videos covering Methods, constructors etc... for beginners...Thanks!!
Hi Mukesh, I dont know abc of java coding but after your videos I gained the confidence even I can do coding. ABC anybody can code. thank you so much. I have a clarification . In the firstclassDemo you have given called the variable as obj2 . But in the second class demo you have mentioned the object name as obj1. Whereas we already used the obj1.sum correct?Please clarify
Hi Suji, Thanks for nice comment. Both are separate class and we are using obj1 and obj2 in a different class so it won't be a problem. To understand this concept in detail you can watch inheritance in detail th-cam.com/video/iDd-OfxOz0U/w-d-xo.html
Hi Mukesh, your tutorials on selenium are very helpful. Can you please explain if we can have a java program without a main method (public static void main)at all? Can we not create objects in the same class and access the methods?
Hi Mukesh, I can understand how exactly static and non-static should be used. But I have a very basic doubt why these two options are available. we can declare all as static and right away call them easily without an object right? Kindly excuse me if the question is senseless and I am in learning stage
Hi, your videos are wonderful but pls increase the volume from ur side............and also pls share how to do debugging concept using selenium webdriver can u share the video link........pls.
Hi Mukesh,i have a query, in the video you said that when an object is called then only the memory is allocated which is fine. but when we declare a method as Static, we are directly calling the methods by using classname then how is the memory allocated in that case? Awaiting your reply. Thanks in advance.
Thank you Mukesh, I am beginner ,HOW DID YOU USE NON STATIC STRING IN STATIC METHOD ????, because i tried but it is showing error that String is non static and cant use in static method. please reply, thanks in advance. your videos are outstanding, It is soo easy to understand.
In last mins of the video u have mentioned like if it static we can call directly by class name right? But there you written Advancecalculator. Sum() What is Advancecalculator refers here?
Advancecalculator is classname where Sum and Sub methods are declared as Advancecalculator is static class we are not creating any object in Thirdclassdemo to call those methods
Hi Mukesh, Thanks for your videos. I have a doubt in this concept. Can we create static method and non-static method in a single class?? If Yes, how do we call that methods?
Hi @Mukeshotwani Thanks for this great video! I have one question? I am also wondering that while writing Selenium test cases, in the Java code we mentioned @Before @After and @Test . How these tags really work and is it really important to use ? Thanks a lot!
Hey llknur , @Before @After @Test these annotation comes from TestNG or Junit. These tag will convert code into Test cases and provides as result log and many more. I will post soon videos on this.
These are the annotations which you can use according to the unit testing framework you are using say, TestNG or JUnit. If you want to write your own Annotation that is also possible. Read the JAVA Annotation and Reflection concepts.
Hi Mukesh Thank you for your videos, these are really helpful :) However, while practicing on Eclipse, most of times I come across an "Error" pop-up without any message on that whenever I click on Run program. Can you please help me to know why does it happen ? Regards Sonal
Hi Mukesh, I have one doubt. Consider there is 2 Package in a Project, 1 Package is having 2 Classes and the other Package is having 3 classes, so can we create an Object of 1st Class(1st package) in 1st Class of 2nd Package?
That was really really an excellent video. Mukesh deep heartedly thanks for making my concept clear. Is this concept helpful when the code is reused..?
Hey Prathamesh Patil I am glad you liked my tutorial . Keep learning and Sharing. Feel free to contact for any issues related to Automation and yes while creating framework you have to use Class, Method and object.
Hello Mukesh Sir, I want to learn automation testing and my background is non IT, I had learn manual testing completely but i start automation but i dont understand which vedios should i follow . please help me to know vedios.
+Shreya Singh yes Shreya all these are java concepts. It is independent of Any IDE. You can use ECLIPSE , NetBeans and so on. I really appreciate your dedication for learning. I started all this after my college only. Keep learning 👍🏻
Thanks for ur all videos and tutorial those are so helpful. i face one problem can u plz help me to solve that please. "write 2 methods and methods for launch URL(), and other method is registration() method. use phptravels.com and create 1 account." and use them in different script. thank you again
Dont mind but you said we can also access x by name only ..which is wrong.. it can only be called by object reference..... as it is also non static..... i follow your lectures on selenium.... thanks fr ur videos
Mukesh, your videos are excellent! I am having some trouble with making a properties file global in TestNG. I have the following block of code below, do you know how I can make it global? Thank you. Properties prop = new Properties(); FileInputStream fis = new FileInputStream("***Path to Properties file"); prop.load(fis);
you can add this code in a constructor block of your testbase class where you are initializing your browsers which is extended by every other class present in your framework: public class Testbase { public static WebDriver driver; public static Properties prop; public Testbase(){ try{ prop = new Properties(); String ProjectPath = System.getProperty("user.dir"); System.out.println(ProjectPath); FileInputStream file = new FileInputStream(ProjectPath + "\\config.properties"); prop.load(file);} catch(FileNotFoundException e){ e.printStackTrace();} catch(IOException e){ e.printStackTrace(); }} public static void intiallization(){ String browsername = prop.getProperty("browser"); if(browsername.equals("chrome")) { System.setProperty("webdriver.chrome.driver", "C:\\Users\\harshal\\Desktop\\Selenium Jar Files\\Gecko Driver\\chromedriver.exe"); driver = new ChromeDriver(); }else if(browsername.equals("FF")) { System.setProperty("webdriver.gecko.driver", "C:\\Users\\harshal\\Desktop\\Selenium Jar Files\\Gecko Driver\\geckodriver.exe"); driver = new FirefoxDriver(); } driver.manage().window().maximize(); driver.manage().deleteAllCookies(); driver.manage().timeouts().pageLoadTimeout(30, TimeUnit.SECONDS); driver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS); driver.get(prop.getProperty("url"));
Mukesh, another instructor said to use this piece of code to call properties into a TestNG test case. I am trying to figure out why this method will not work. Can you please assist? public WebDriver driver; @Test public void Login() throws IOException { Properties prop=new Properties(); FileInputStream fis=new FileInputStream("C:\\Users\\marwa\\eclipse-workspace\\POF\\src\\OBJECT_REPOSITORY\\var.properties"); prop.load(fis); driver.get(prop.getProperty("url")); } Properties prop=new Properties(); }
mayank batra when we use keyword static before a variable like static a=1 then the value of a is shared , for example in a program we have to access value of a more than once and when we are accessing for the second time like in next statement if a is incremented the incremented value is carried along the program that is why we use static
Well explained.. Very first time hearing how internally it's works.. Out of 1 lakh videos.. Keep Going..
Thank you Afsal 😊 🙏
Mukesh, you are the best. You teach with the primary aim to impart knowledge not to show off
Thank you so much Phinehas 😀
Not everyone who has a decent subject knowledge can teach a lay man like me and you have made it so simple by the way you have taught this concept.excellent explanation sir.thank you!
Thank you so much Shashank.. Keep learning and please do share with your friends. 😀
awesome video....i am from electronics background n i tried many times but i din get even single word ever....i was very depressed but your video helped me alot....i understand all these things you have explained.......so Thanks alot Mukesh thank you so much
I have seen many tutorials for basic Java learning but only your tutorial helped me to understand the basic clearly.your teaching style is very simple and comprehensive.Many many thanks to you.
Thank you so much Preeti :) Keep learning.
let me know if you need any help from my side.
Happy Weekend.
Mukesh ,.. Thanq so so much... I had gone through many videos, but nothing worth when I compare it with your tutorials. I am a novice when it comes to automation, coding and script . Now I feel confident. Thanq Bro...
Thanks a ton mukesh for such a wonderful explanation...... it is precise and straight forward for new comers and people from non it/cs background can easily understand.
Thanks Chriranjibi.. Keep visiting and keep learning.
great sir, really very helpful tutorial, thanks a lot for this tutorial 🙂🙂🙂🙂👍👍👍👍
Thanks a lot mukush.. perfectly implemented the same.. and totally understood the basics..
Cheers Karthik.
i was struggling for basic java concepts even after working on selenium for more than a year. but this video really helped me to get over all the confusions on basic java concepts. thanks a lot, your video made it supereasy :p. just a single suggestion, please arrange all your videos in a proper sequence or give them a number so that it would be easy for beginner who doesn't know from which topic to start.
Hi Sampada, Your comment made my day. I am glad that my videos are helping to understand Java. I have planned few more videos on JAVA and after that I will arrange them in order.
Hi Mukesh,
I could have given 10 thumbs to this video if I could. Its very clear and cut to the point, the way you have explained. thanks you very much.
Hey Keyur thank you so much.. Your comment is equal to 10 thumbs.. Keep learning and let me know if any help from my side..
Hi Mukesh! You're so helpful for everyone who wants to learn selenium! You're the best DUDE!
Thanks a ton mate :) let me know if any help from my side.
excellent mukesh thanks for providing this videos
Great job....thank you so much for these tutorials...
You are so welcome! Thanks Jesna
This is very simple way to understand what is class , object and method.
I watched this video more than 5times.
Thanks for uploading
Hey hardik patel I am glad you liked my tutorial 😀. Keep learning and Sharing. Feel free to contact for any issues related to Automation.
Thanks Mukesh for making these topics very easy. Very useful. Hopefully will be able to follow your videos and write selenium scripts as well :)
Hey Sai Amulya I am glad you liked my tutorial . Keep learning and Sharing. Feel free to contact for any issues related to Automation.
Hi Mukesh,
this video help me to clear all my concepts regarding classes,object,static and non-static function.
thank you very much, you are doing great job..:)
Thanks Mukesh for sharing your selenium videos and its more informative and helpful. Appreciate and well done.
Your most welcome Bhuvan. Long way to go
Thank you Mukesh..Your videos are really helping me learn the basics.
Most welcome Divya. Keep learning.
Hey Mukesh.. I must say that person like me basically from non-technical background also learning lot from your videos.
Just a request can u please post basic java videos covering Methods, constructors etc... for beginners...Thanks!!
Hi Krunal all in pipeline will upload soon.
Thanks a ton!
Nice Vedio my doubt is completly cleared regarding how to call another methods by using object & Class
Thanks Anita, I am glad it helped you :)
fantastic video. thanks mukesh.
Thanks Ganesh
Thank you Mukesh... explanation is really useful ..... good work
thanks Deepu I am glad you liked it. Keep visiting.
These video had tremendous help on my learning, I truly thank you so much !
gemini beauty thank you gemini I am glad it helped you. Keep visiting.
Simple and precise. Good content..thanks
Thanks Sujith :) Keep learning and Sharing.
again good job at explaining i understand you more than when i was in college thank you for reviewing me!
quick question so which is more efficient to use? creating an obj to call the class? or calling directly the class?
hi sir am beginner to java classes can u provide the link from first class of java for selenium and which one i have to install for programming
great work mukesh... Thanks alot for these video... Explained so nicely
Welcome Prashanti, I am glad you liked the video.
Thanks Mukesh it is great learning attending this video.....
Thanks Jack.
its really good and explained in simple way
Thanks Mukesh ..Helps lots !!!
Thanks Santosh
Hi Mukesh, I dont know abc of java coding but after your videos I gained the confidence even I can do coding. ABC anybody can code. thank you so much. I have a clarification . In the firstclassDemo you have given called the variable as obj2 . But in the second class demo you have mentioned the object name as obj1. Whereas we already used the obj1.sum correct?Please clarify
Hi Suji, Thanks for nice comment.
Both are separate class and we are using obj1 and obj2 in a different class so it won't be a problem.
To understand this concept in detail you can watch inheritance in detail th-cam.com/video/iDd-OfxOz0U/w-d-xo.html
Very well explained... Greateful for your teaching Mukesh! Can I get access specifiers video link?
Nice explanation sir,your video's are very easy to understand,Thank you so much
Really very helpful.
the way you explain is too good.
Thanks Komal. Kindly share with your friends as well and let me know if any help from my side.
Very well explained
Glad it was helpful!
Hi Mukesh, your tutorials on selenium are very helpful.
Can you please explain if we can have a java program without a main method (public static void main)at all? Can we not create objects in the same class and access the methods?
Thanks Mukesh. They are really helpfull..:)
Thanks Nishita :) I am glad it helped you.
Thanks for the video.. explained really well. really appreciated.
good stuff, thanks a lot and plz provide all examples files which you have covered in videos to download for run into individual machines.
Thanks
Hi Mukesh, I can understand how exactly static and non-static should be used. But I have a very basic doubt why these two options are available. we can declare all as static and right away call them easily without an object right? Kindly excuse me if the question is senseless and I am in learning stage
Hi,
your videos are wonderful but pls increase the volume from ur side............and also pls share how to do debugging concept using selenium webdriver can u share the video link........pls.
Hey Prudhvi, its software issue so this is max volume from my side. But give try my best again
super expiation sir. would like to join ur daily live training when ur starting new batch pls let me know??
Hi Sir. these 25 java videos enough for selenium ???
Hi Mukesh,i have a query, in the video you said that when an object is called then only the memory is allocated which is fine. but when we declare a method as Static, we are directly calling the methods by using classname then how is the memory allocated in that case? Awaiting your reply. Thanks in advance.
Thank you Mukesh, I am beginner ,HOW DID YOU USE NON STATIC STRING IN STATIC METHOD ????, because i tried but it is showing error that String is non static and cant use in static method. please reply, thanks in advance. your videos are outstanding, It is soo easy to understand.
same doubt
public class Demo
{
String s="Rgt";
public static void main(String[] args)
{
Demo d=new Demo();
System.out.println(d.s);
}
}
Very informative video.
Mukesh, why did u take X and Y as variables when u used a,b,c variables in method ?
Nice explanation.
In last mins of the video u have mentioned like if it static we can call directly by class name right? But there you written Advancecalculator. Sum()
What is Advancecalculator refers here?
Advancecalculator is classname where Sum and Sub methods are declared as Advancecalculator is static class we are not creating any object in Thirdclassdemo to call those methods
Hi
If we create one member method and we won't call that method through any object then .... Is that member method takes any memory???
Hi Sravani,
The method will never take memory the variable takes the memory..
Hi Mukesh, Thanks for your videos. I have a doubt in this concept.
Can we create static method and non-static method in a single class??
If Yes, how do we call that methods?
Yes, you can for static method u can class name and for non static you can create object of Class then call the non static methods.
@@Mukeshotwani Thank you
Info overloaded
Mukesh, how do you call a method into another one?
Awesome class
Hi @Mukeshotwani
Thanks for this great video! I have one question? I am also wondering that while writing Selenium test cases, in the Java code we mentioned @Before @After and @Test . How these tags really work and is it really important to use ? Thanks a lot!
Hey llknur , @Before @After @Test these annotation comes from TestNG or Junit. These tag will convert code into Test cases and provides as result log and many more. I will post soon videos on this.
Yay!! Looking forward for them!
Also, Thanks for your quick feedback!
Appreciated.
:)
These are the annotations which you can use according to the unit testing framework you are using say, TestNG or JUnit. If you want to write your own Annotation that is also possible. Read the JAVA Annotation and Reflection concepts.
Hi Ram yes totally agree but why to take so much pain to create if it already exist in Framework.
Hi Mukesh
Thank you for your videos, these are really helpful :)
However, while practicing on Eclipse, most of times I come across an "Error" pop-up without any message on that whenever I click on Run program.
Can you please help me to know why does it happen ?
Regards
Sonal
Hi mukesh , very nice videos and helps lots.... Please can you upload a video how to write test cases using framework.
HI Pavani,
I have paid course for this learn-automation.usefedora.com/p/selenium-frameworks-and-selenium-question-answers/
Hi Mukesh,
I have one doubt. Consider there is 2 Package in a Project, 1 Package is having 2 Classes and the other Package is having 3 classes, so can we create an Object of 1st Class(1st package) in 1st Class of 2nd Package?
Yes Koushik why not.
@@Mukeshotwani thanks🙂.
Hi Mukesh - I want to run my test script code which is on my local machine on a remote machine. Could you please advice how to do that ?
Hi Arun,
You have to use Selenium Grid for this learn-automation.com/selenium-grid-for-remote-execution/
Mukesh otwani Thanks Mukesh for a quick response... I'll get u further if I have further questions.
That was really really an excellent video. Mukesh deep heartedly thanks for making my concept clear. Is this concept helpful when the code is reused..?
Hey Prathamesh Patil I am glad you liked my tutorial . Keep learning and Sharing. Feel free to contact for any issues related to Automation and yes while creating framework you have to use Class, Method and object.
Mukesh Otwani thanks. Will try it on my own and let you know if I have any concerns...😊👍
Hi Mukesh,
I liked your videos but all are not in sequence, could you please help me on this ?
Hi ,
In this we are creating Object of class and calling there methods in another class using the object of that class ?
Dilpreet singh yes right
Hi Mukesh
If we don't mention any access specifier than will it take 'default' access specifier??
Yes Correct default specifier it will take
thank u sir
explane verymuch
Thank you sir Mukesh Guruji for teaching us Java in an unique way. Boss I need you help . How can I contact to you plz let me know.
Sure Noora, please connect with me via email mukeshotwani@learn-automation.com
Thank you gurujii love and respect for you and I really appreciated for your quick reply .
Hello Mukesh Sir, I want to learn automation testing and my background is non IT, I had learn manual testing completely but i start automation but i dont understand which vedios should i follow . please help me to know vedios.
Hi Syed,
You can follow all videos in below order learn-automation.com/selenium-webdriver-tutorial-for-beginners/
Sir.. I am 12th IP student.. this is my first lesson.. r these concepts of classes and objects are applicable to netbeans ide too?
+Shreya Singh yes Shreya all these are java concepts. It is independent of Any IDE.
You can use ECLIPSE , NetBeans and so on.
I really appreciate your dedication for learning.
I started all this after my college only.
Keep learning 👍🏻
thnxxx.. sir do u have also stated about database connectivity to mysql? I m unable to find it
yes here you go th-cam.com/video/CjNqKlTluxc/w-d-xo.html
Thanks for ur all videos and tutorial those are so helpful. i face one problem can u plz help me to solve that please. "write 2 methods and methods for launch URL(), and other method is registration() method. use phptravels.com and create 1 account."
and use them in different script.
thank you again
Hey Nayeem Can you please send me your code I will import and will fix it.
Dont mind but you said we can also access x by name only ..which is wrong.. it can only be called by object reference..... as it is also non static..... i follow your lectures on selenium.... thanks fr ur videos
+Abhishek Singh thanks Abhi
many thanks
Hey Le thanks and welcome too
Mukesh, your videos are excellent! I am having some trouble with making a properties file global in TestNG. I have the following block of code below, do you know how I can make it global? Thank you.
Properties prop = new Properties();
FileInputStream fis = new FileInputStream("***Path to Properties file");
prop.load(fis);
you can add this code in a constructor block of your testbase class where you are initializing your browsers which is extended by every other class present in your framework:
public class Testbase {
public static WebDriver driver;
public static Properties prop;
public Testbase(){
try{
prop = new Properties();
String ProjectPath = System.getProperty("user.dir");
System.out.println(ProjectPath);
FileInputStream file = new FileInputStream(ProjectPath + "\\config.properties");
prop.load(file);}
catch(FileNotFoundException e){
e.printStackTrace();}
catch(IOException e){
e.printStackTrace();
}}
public static void intiallization(){
String browsername = prop.getProperty("browser");
if(browsername.equals("chrome"))
{
System.setProperty("webdriver.chrome.driver", "C:\\Users\\harshal\\Desktop\\Selenium Jar Files\\Gecko Driver\\chromedriver.exe");
driver = new ChromeDriver();
}else if(browsername.equals("FF"))
{
System.setProperty("webdriver.gecko.driver", "C:\\Users\\harshal\\Desktop\\Selenium Jar Files\\Gecko Driver\\geckodriver.exe");
driver = new FirefoxDriver();
}
driver.manage().window().maximize();
driver.manage().deleteAllCookies();
driver.manage().timeouts().pageLoadTimeout(30, TimeUnit.SECONDS);
driver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS);
driver.get(prop.getProperty("url"));
}
Mukesh, another instructor said to use this piece of code to call properties into a TestNG test case. I am trying to figure out why this method will not work. Can you please assist?
public WebDriver driver;
@Test
public void Login() throws IOException {
Properties prop=new Properties();
FileInputStream fis=new FileInputStream("C:\\Users\\marwa\\eclipse-workspace\\POF\\src\\OBJECT_REPOSITORY\\var.properties");
prop.load(fis);
driver.get(prop.getProperty("url"));
}
Properties prop=new Properties();
}
Thank you So much :)
What is the significance of using static...can u pls explain why we use static
mayank batra when we use keyword static before a variable like static a=1 then the value of a is shared , for example in a program we have to access value of a more than once and when we are accessing for the second time like in next statement if a is incremented the incremented value is carried along the program that is why we use static
Very nice explanation Deepika :)
Hi Mayank hope it is clear..
Mukesh otwani thank u sir...but can u pls share some another example
no sir, it is not :(
Which is the 1st video of java for selenium,Sir please tell me
Hi Diksha, feel free to connect with me for any issue in Selenium or In Java.
How to call static variable in another class?
Thank you sooooooo much
These videos are not in sequence.. get confusing which video next to play .. can allocate video number
Sure Akash I will arrange them with number but most of the concepts are independent.You can learn them concept by concept.
Fan of you
Why we create object ?
What happens internally when we create object ?
Object are created to manipulate data with methods.
DO U TEACH AS WELL?? @Mukesh Otwani
Yes Mate, next batch details you can check here learn-automation.com/selenium-webdriver-online-training/
👌👌👌👌👍👍👍🙏
I want java for selenium from 1st lecture
Hey Diksha, please follow this playlist th-cam.com/play/PL6flErFppaj2ArNxLyR4nQ4JV8qFc56-M.html
🙂
Thanks Reshman