one of the very good video and topic on the internet and the explanation way is very simple and good. this was one of the question in my mind from a long time, today i thought lets check on youtube and i found you. Thanks you sir for explaning this in very excellet way . Thanks a lot.
Excellent explanation. Can you also explain why don't we just use RemoteWebDriver class to create driver instance in this case which would not need typecasting since RemoteWebDriver inherits all methods of all 3 interfaces.
Yes we can use remotewebbriver class as well. There is nothing wrong in using it but the only reason we usually use the webdriver is because of its name. Remotewebbriver is more often used for remote execution where you mention the ip address and port number. So for all local executions we use webdriver. It's just a standard we usually follow but if we want to maintain the uniformity then we can always use the remotewebbriver class.
Till Selenium v3, ChromeDriver extends RemoteDriver. This ChromeDriver was a WebDriver implementation that controlled the google-chrome browser running on the local machine.
@@HYRTutorials Hello Sir , I have a doubt here , Even we use Webdriver instance here , Remotewebdriver Inherits its properties and Again All the browser class INHERITS the properties of Remowebdriver ( Chromedriver Extends RemoteWebdriver) , In this case we don't requires typecasting right , The browser classes have all the method implementation of JS Interface and driver automatically takes the Methods of JS ?? Please clarify.
@@ferozkhanr6653 No we cant handle the capta in selenium buddy. If your application has that feature then you can ask the dev to provide some property for the capta control or you can ask them to turnoff that in the test enevs
Wonderful HYR garu. Then, can we directly do as following? RemoteWebDriver driver=new RemoteWebDriver(); and use it? Kindly reply. And, as always, Thanks for your great teaching.
In if else condition everytime u r checking minimum 1 condition and if that condition fails then again it will go for another condition. Like that it continues condition checking. So to avoid that we have to use switch condition.
Thanks for d reply..😊 so in case of switch condition it directly jumps to d case on which we want to run our testscripts without checking each n every case
Implements and extends are keywords. Implements is used when you want implement the unimplemented methods from interfaces. Extends is used when you want to inherit other class properties like attributes and methods. So it is mostly used in inheritance concepts.
As per the typecasting rule: The object(TakesScreenshot) type should be same or parent of runtime object of driver,i.e(Cromedriver). 1)It works when both are related to class. 2)But i don't know when they are interfaces and classes.(TakesScreenshot is a interface and Chromedriver is a class). Is same typecasting rule applied to above statements? If not could pls clarify my doubt?
Hello Sir , JavaScript Executor is also an interface right? So Even though we type cast into JavaScript executor , How can we access the method executescript() which is un-Implemented still in interface ? Please tell me
Basically here we alrdy have the fully implemented driver but when u r creating the driver instance type as webdriver then you can only access methods inside the webdriver interface even though it has the JavaScriptExecutor methods code. So that is why we are typecasting it to JavaScriptExecutor.
@@HYRTutorials so do you mean because we write a statement WebDriver driver = new ChromeDriver() and the ChromeDriver class has all the methods implemented from WebDriver, JavaScriptExecutor and TakesScreenshot we are able to typecast the driver and access other interface class methods. But if we write WebDriver driver = new WebDriver() then the typecast would not work. Please correct me.
Looks like there are more selenium tutorials in english playlist than the selenium telugu playlist. If there are any missed topics in telugu playlist can you do them in telugu too. Its just easy to process in telugu. and i feel because our mother tongue is telugu explanation and understanding is easier and faster in telugu. Please consider my request.
Some of the additional topics are covered in English and the interview questions are also created in English only. I will create them in telugu language but it may take some time
In java we have the concept of abstract methods and non abstract methods. Abstract methods are also called as unimplemented methods. These methods are present in either interface it abstract class.
📌 Selenium Interview Questions Playlist Link: bit.ly/3matUB3
✴ Checkout my other playlists: bit.ly/3gLIAVL
☕ Buy me a coffee: bit.ly/33ljBWc
Just wow. What a nice way of explanation. That particular diagram is a million dollar worth.
Thankyou 😊
Diagram makes the topic easy and more understandable.
Best explanation received so far .. Thanks Buddy
Great explanation of all important topics related to instantiation of WebDriver and typecasting I could find in one video, thank you!
Thanks buddy 😊
Superb explaination. I was wondering why we are typecasting and what is it.
Thanks, now clear.
Super 😊
perfect explanation.. very easy to understand.. thanks much bro
Thanks buddy 😊
You are brilliant... Really Really Helpfull... Thank you sir
Thanks buddy 😊
Nice explaination using interface and inheritance all together 👍
Watched twice to recollect everything together..
Thank you 😊
Thanks for the explanation sir. That diagram helps a lot.
Happy learning buddy 😊
Excellent way of teaching......
Thanks buddy 😊
one of the very good video and topic on the internet and the explanation way is very simple and good. this was one of the question in my mind from a long time, today i thought lets check on youtube and i found you. Thanks you sir for explaning this in very excellet way . Thanks a lot.
Thankyou buddy 😊
Very good explanation and after watching full video came to know the main reason for typecasting. Please make more videos like this. 👍
Thank you, I will
One of the very best explanation, I have ever came across you are awesome. you should make more videos on interview questions
Thank you, I will
Nice. Very good explanation.
Thankyou 😊
Well explained 🙏🙏non technical people also can understand easily thank you so much 👏👏
Thankyou 😊
Thanks sir for made this video.
Happy learning buddy 😊
Very good explanation
Thanks for liking
Best explanation, thanks mate. Gratitude 🙏🙏🙏
Very clear explanation
Thanks buddy 😊
Perfect explanation as usual
Thank you 😊 Stay tuned for more videos like this
Great Explanation.thank you so much.
Glad you liked it
Excellent explanation.
Very good explanation...you are awesome...:)
Thanks a lot 😊
Good explained..... Thank you 👍
Glad it was helpful!
Great explanation, Thank you very much!
Thanks buddy 😊
Very nice explaination
Thank you 😊 Keep watching
simply super bro
Thanks buddy 😊
Wow😍. What a explanation. Could you please make more videos on interview questions
Thankyou, Sure 😊
thank you. You explain it very well
Thankyou 😊
Super explanation
Thankyou buddy 😊
wow simply awesome !
Thanks buddy 😊
Excellent one 🙏
Thankyou 😊
Neat explanation 👌👏..thank you subscribed 👍
Thankyou 😊
Thank you so much bro
Happy learning buddy
Excellent explanation. Can you also explain why don't we just use RemoteWebDriver class to create driver instance in this case which would not need typecasting since RemoteWebDriver inherits all methods of all 3 interfaces.
Yes we can use remotewebbriver class as well.
There is nothing wrong in using it but the only reason we usually use the webdriver is because of its name.
Remotewebbriver is more often used for remote execution where you mention the ip address and port number.
So for all local executions we use webdriver.
It's just a standard we usually follow but if we want to maintain the uniformity then we can always use the remotewebbriver class.
Till Selenium v3, ChromeDriver extends RemoteDriver. This ChromeDriver was a WebDriver implementation that controlled the google-chrome browser running on the local machine.
@@HYRTutorials Hello Sir , I have a doubt here , Even we use Webdriver instance here , Remotewebdriver Inherits its properties and Again All the browser class INHERITS the properties of Remowebdriver ( Chromedriver Extends RemoteWebdriver) , In this case we don't requires typecasting right , The browser classes have all the method implementation of JS Interface and driver automatically takes the Methods of JS ?? Please clarify.
Sir whenever we said typecasting for javascriptExecutor in that situation to be more precise we can say it is also upcasting or not
Can we declare like RemoteWebDriver driver = new chromeDriver();
Yes we can declare buddy. When working with remote execution that's how we do it
@@HYRTutorials How to handle captcha in selenium, any third party lib is supported ?
@@ferozkhanr6653 No we cant handle the capta in selenium buddy. If your application has that feature then you can ask the dev to provide some property for the capta control or you can ask them to turnoff that in the test enevs
Wonderful HYR garu.
Then, can we directly do as following?
RemoteWebDriver driver=new RemoteWebDriver();
and use it?
Kindly reply. And, as always, Thanks for your great teaching.
when there is no relashion between webdriver and takescreenshort references then how can we typecasting it? please explain.
Can you please tell me how to say these answers precisely in interview as we won't have any script over there.
Why we don't write RemoteWebDriver driver = new ChromeDriver(); ?
We can write and there is nothing wrong in that.
It's just that by name we can see.
Remotewebdriver is mostly used for remote connections.
Sir.. every one uses if else condition to choose d browser.. but u have used switch is der any reason behind dat.. thanks in advance
In if else condition everytime u r checking minimum 1 condition and if that condition fails then again it will go for another condition.
Like that it continues condition checking.
So to avoid that we have to use switch condition.
Thanks for d reply..😊 so in case of switch condition it directly jumps to d case on which we want to run our testscripts without checking each n every case
Exactly.
What is difference between extends and implements.
Implements and extends are keywords.
Implements is used when you want implement the unimplemented methods from interfaces.
Extends is used when you want to inherit other class properties like attributes and methods.
So it is mostly used in inheritance concepts.
As per the typecasting rule: The object(TakesScreenshot) type should be same or parent of runtime object of driver,i.e(Cromedriver).
1)It works when both are related to class.
2)But i don't know when they are interfaces and classes.(TakesScreenshot is a interface and Chromedriver is a class).
Is same typecasting rule applied to above statements? If not could pls clarify my doubt?
Hello Sir , JavaScript Executor is also an interface right? So Even though we type cast into JavaScript executor , How can we access the method executescript() which is un-Implemented still in interface ? Please tell me
Basically here we alrdy have the fully implemented driver but when u r creating the driver instance type as webdriver then you can only access methods inside the webdriver interface even though it has the JavaScriptExecutor methods code.
So that is why we are typecasting it to JavaScriptExecutor.
@@HYRTutorials Hello Sir. I had the same question and I did not understand this answer. Could you please simplify.
@@Drake9w1 to understand this, have some basic understanding of interfaces and classes.
It's very easy once you got some basic idea about those.
@@HYRTutorials so do you mean because we write a statement WebDriver driver = new ChromeDriver() and the ChromeDriver class has all the methods implemented from WebDriver, JavaScriptExecutor and TakesScreenshot we are able to typecast the driver and access other interface class methods.
But if we write WebDriver driver = new WebDriver() then the typecast would not work. Please correct me.
@@swapnabhaskaruni first of all you can't create an object for webdriver.
Check your second statement one more time
Why are we not typecasting it when we use ChromeDriver driver; ?
Because typecasting is not required buddy
Looks like there are more selenium tutorials in english playlist than the selenium telugu playlist. If there are any missed topics in telugu playlist can you do them in telugu too. Its just easy to process in telugu. and i feel because our mother tongue is telugu explanation and understanding is easier and faster in telugu.
Please consider my request.
Some of the additional topics are covered in English and the interview questions are also created in English only.
I will create them in telugu language but it may take some time
please create java interview series (coding & conceptual ) both
You didn't mention "RemoteWebDriver" anywhere, then why did you include in the diagram?
Remotewebdriver is the class where all the interferences are implemented buddy
Thank you
awesome
Thankyou buddy 😊
When we say Takescreenshot ts = (Takescreenshot ) driver , is this up casting or down casting ?
you could say upcasting only but we shouldn't use the down casting or upcasting words here instead we should simply call it as typecasting.
@@HYRTutorials got it thanks for the kind response
Thankyou
Happy learning buddy 😊
What is unimplemented methods sir?
In java we have the concept of abstract methods and non abstract methods.
Abstract methods are also called as unimplemented methods.
These methods are present in either interface it abstract class.
please do more viodes on inetrview questions bro , whenever you are free...
Yeah sure, currently I'm not getting much time in this month.
Will make those videos in next month for sure
Ok bro thanks ☺️☺️..
👏👏👏👏👏
Thanks buddy 😊
Tqu
Glad you find it helpful
Why don't we use RemoteWebDriver?
We can use without any problem buddy.
But it's just the naming convention.
Remotewebdriver is mostly used for remote connections
❤
@10:00 Thank me later.
😊
Thank you