What is the meaning of WebDriver driver = new ChromeDriver() in Selenium WebDriver?
ฝัง
- เผยแพร่เมื่อ 31 ส.ค. 2020
- In this video, I have explained about "What is the meaning of WebDriver driver = new ChromeDriver() in Selenium WebDriver?".
WebDriver is an interface with a set of unimplemented methods.
WebDriver drives a browser natively, as a user would, either locally or on a remote machine using the Selenium server, marks a leap forward in terms of browser automation.
Selenium WebDriver refers to both the language bindings and the implementations of the individual browser controlling code. This is commonly referred to as just WebDriver.
Selenium WebDriver is a W3C Recommendation
- WebDriver is designed as a simple and more concise programming interface.
- WebDriver is a compact object-oriented API.
- It drives the browser effectively.
==============================================
↔️ Selenium Interview Questions Playlist Link: bit.ly/3matUB3
✴ Checkout my other playlists: bit.ly/3gLIAVL
☕ Buy me a coffee: bit.ly/33ljBWc
👑 Join my TH-cam channel to get access to perks:👇
/ @hyrtutorials
==============================================
==============================================
Connect us @
🔗 Website - www.hyrtutorials.com
🔗 Telegram - t.me/hyrtutorials
🔗 Facebook - / hyrtutorials
🔗 LinkedIn - / hyrtutorials
🔗 Twitter - / hyrtutorials
🔗 Instagram - / hyrtutorials
==============================================
==============================================
🙏 Please Subscribe🔔 to start learning for FREE now, Also help your friends in learning the best by suggesting this channel.
#hyrtutorials #selenium #interviewQuestions #webAutomation
Selenium Interview Questions By Yadagiri Reddy
h y r tutorials hyr tutorials selenium interview questions and answers selenium tutorial for beginners selenium java selenium interview questions and answers selenium tutorial for beginners selenium java
Superb! Hardly other instructors give importance to this statement.
Thankyou 😊
Good Explanation of the statement. Easy to understand. Thanks for the Video
Glad you liked it
very helpful video for selenium interview. thanks sir for this video
Thankyou 😊
Very clear explanation. Thanks a lot.
Thankyou 😊
Excellent explanation ! Thanks.
Thankyou 😊
Thanks you sooooo much Sir great explanation everyone saying same thing but the way you explained it's just superb thanks again
Thanks buddy 😊
It is so clear and detailed
Much needed concept
Tq for making videos..
Thankyou 😊
Thank you so much sir for made this video.
Happy learning buddy 😊
Thanks for the clear information sir.
Happy learning buddy 😊
Best explanation ever 🙏
Thanks buddy 😊
very well explained. tnx
Thankyou 🙂
Excellent explanation
Thanks buddy 😊
Really really great 😊
Thankyou 😊
Thank you so much
Welcome buddy 😊
I see your video brother and is very nice , thanks a lot
Thank you
Nicely explained
Thank you so much 🙂
good explanation
Thanks buddy 😊
Perfect...👍
Thank you so much 😀
Thank you sir
Welcome
great explanation bro please try to make more interview faqs on selenium
Thanks buddy 😊
Hello sir, we can also write ChromeDriver driver =new ChromeaDriver(); also right?
nice explanation
Thanks buddy 😊
Nice explanation..
Thanks for liking
awesome!
Thanks buddy 😊
Very useful information in interview
Thanks for liking
@@HYRTutorials can u create java interview questions for selenium like this
Yeah i will try to create bro. But i would suggest you to have full knowledge on core java rather than looking for interview questions.
One can become a good automation tester only when he/she has a very good understanding on the programming language.
superb
hi ,what is the instance you mentioned while explaining the ChromeDriver instance?
Instance of chromedriver
Instance means object
Nice Explanation Sir
Thanks for liking, Keep watching.
@@HYRTutorials sure sir
Sir. What is the difference between implemented and unimplemeted methods?
Can you show it with an eg.
Unimplemented methods will not have any implementation inside the method.
Generally we define the method and some code inside that method ryt?
Eg:
public void testMethod()
{
System.out.println("Implemented method");
}
the above one is implemented method and you can see it has some code in it, it might be just a print statement also.
Unimplemented method means it will not have any implementation in it, means it will not have any code basically.
Eg:
public void testMethod();
Generally we have three types of java files.
1. Class
2. Abstract class
3. Interface
Out of all these 3 , only class will have fully implemented methods.
Abstract class will have both.
Interface will have only un-implemented methods(before java 8), will have default type of implemented methods as well (after java 7)
@@HYRTutorials Thank you Sir.
Tnx sir
Happy learning buddy 😊
Nice 👍
Thankyou 😊
Can we use RemoteDriver in the place of webdriver
Yes we can use it without any doubt.
good content
Thankyou buddy 😊
Tq sir
Happy learning buddy 😊
tq andi☺
welcome buddy
@@HYRTutorials meru java programs ni use chesi videos amayina cheppara a?
pls keep addming more
Sure buddy
Sir apo ithu upcasting method ilaiya chromedriver oru constructor athanala ithu upcasting methods use object create panalaiya
ungalaku tamil konjem knojhem da teriyum macha. ne yenna solladu enaku purille. english la solunga macha
Sir I asked... Isn't this a upcasting method. Chromedriver is a constructor or not sir
@@bhagyalakshmi5230 yes this is up casting only buddy. As we are casting the class instance to interface reference here
Sir import statement is coming for webdriver or Chromedriver but not for both how can I fix these
Which selenium version you are using buddy?
@@HYRTutorials 3.141.59
ChromeDriver driver= new ChromeDriver();
WebDriver driver= new ChromeDriver();.
Both will work right ?
What is the defence then bro... I am not getting that logic
Please anna answer kavali
Video motham chusava buddy?
Video chusaka neeku em ardam indo okasari cheppu buddy
@@HYRTutorials as per my knowledge in 2nd statement driver object has access to methods in ChromeDriver Class which are there in WebDriver Interface
First statment can access all methods in ChromeDriver class
Webdriver is an interface and by default it have abstract methods and we cant create constructor of a interface directly, for that we need implementation class and in this case Chromedriver is an implementation class which will pass the arguments at the time of execution of program.
And here we are doing upcasting which is part of typecasting.
Pls upload more videos on interview questions
Sure buddy
next question was- we cant create an object of interface right? then how webdriver interface is creating the obj?
how to answer this?please reply!
We can't create an object of interface but here we are not creating the object of interface buddy.
We create any object by invoking the constructor and here we are invoking the chrome driver constructor not the webdriver constructor.
Which means we are creating the object of chrome driver class only and not t the webdriver interface.
We have mentioned the variable type as webdriver here.
You can simply say like this
We are not creating the object of interface but we are creating a reference here
@@HYRTutorials
u meant we are invoking the chromedriver constructor through driver as a reference and webdriver as variable right?
so driver has all the properties of chromedriver like whatever method we call like findElement .close() etc.
then what is the need of to write webdriver there?
he traped me in this question very badly ...and i m still unable to undrstand this thing.
@@naaz7847 to understand this very clearly, learn about the interfaces and classes in java buddy
@@HYRTutorials tell me the answer
is it also called as Typecasting????
This isn't the typecasting buddy.
how many test cases you write in a day & how test cases will you execute in a one day
this question ask in interview
hoe to answer this question plz explain sir
It depends on project to project and role to role buddy.
Get in touch with your friends who are working in the same field and get to know the day to day activities
please explain complete manual testing.
what is manula testing ?
what is black box testing?
what is white box testing?
what is gray box testing?
what is functional testinng?
what is non functional testing?
what is performance testing?
types of functional testing?
types non functional testing?
water fall model
v model
SDLC
STLC
Manual testing meeda no plans buddy
Bro mi videos automation classes chaala bagunnaye koncham interview questions and ans ala untaayeo chesi video upload cheyyandi bro so maki interview ki attend aieyyeki chala help autaadi pls bro
Thankyou 😊, Sure bro
@@HYRTutorials tqq for u r responce bro chaala manchipani cgestunnaru ma lanti job searching persons ki tq
@@dudekulachandu4440 thankyou bro 😊
Hope you will get your job very soon
@@HYRTutorials tqq bro job vachhaka mari miki pakka chopataa
Have you created any videos on desired capabilities for browsers?? Btw nice explaination 👍👍
Yes here is the link
th-cam.com/video/lvIXXilkw60/w-d-xo.html
And another video is on the way, soon will upload it.
@@HYRTutorials thanks for the quick reply..it was helpful 👍
Pls do more information about selenium
Sure buddy
Sir 2years experience Candidates ki salary 12lpa untundha?
It all depends on the candidate performance, talent and profile.
Yes I have seen people with 12lpa for 2 years.
@@HYRTutorials ok sir thanks
why do we write WebDriver d = new ChromeDriver(); instead of ChromeDriver d = new ChromeDriver(); ??
For that question only this video buddy
@@HYRTutorials sir, why can't we write ChromeDriver d = new Chrome Driver (); ???
Did you watch this video buddy?
Hlo sir manual and auto mati9n test cases mida oka video cheyandi sir
Sure buddy
Sir please make a video on explain framework in interview?
Sure buddy
What is BY. ?
By is a class buddy
really going extra mails bro
Thanks buddy 😊
Why not ? WebDriver ChromeDriver = new ChromeDriver();
or When to use it?
There is another video on why we need to use it like this.
You can watch that video.
sir please explain script in telugu to register to a particular application
Ardam kaaledu bharathi.
Em application ni register cheyyali and ekkada cheyyali?
Opencart application,in selinium java
aa application ni automate cheyyali anukuntunnva?
Yes sir
Watch the selenium java playlist and you will be able to automate the application
🥰😍
Thanks buddy 😊
Testng concepts tulugu lo leva
Ledu buddy. Currently TestNG is only available in English
Ok thanks for ur reply
It's reference variable not a local variable
Yes buddy
If we do
ChromeDriver driver = new Chrome driver ();
It's a valid thing only but we need to understand the difference why we should not write like that
what is WebDriver? The important thing is to know what exactly the use of WebDriver, not Java objective ways.
📌 Selenium Interview Questions Playlist Link: bit.ly/3matUB3
✴ Checkout my other playlists: bit.ly/3gLIAVL
☕ Buy me a coffee: bit.ly/33ljBWc
Sir please ans my ques
can u ask me in english
28 february 'I m your youtube student from Kanada 😃
Thankyou buddy