No Driver Executable Path or WebDriverManager required

Selenium 4: New Features Selenium 4 - New Featues
11 minutes
Share the link to this page
Copied
  Completed
You need to have access to the item to view this lesson.
One-time Fee
$49.99
List Price:  $69.99
You save:  $20
€46.84
List Price:  €65.59
You save:  €18.74
£40.08
List Price:  £56.11
You save:  £16.03
CA$68.77
List Price:  CA$96.29
You save:  CA$27.51
A$77.57
List Price:  A$108.61
You save:  A$31.03
S$67.98
List Price:  S$95.18
You save:  S$27.19
HK$391.47
List Price:  HK$548.09
You save:  HK$156.61
CHF 45.44
List Price:  CHF 63.62
You save:  CHF 18.18
NOK kr550.52
List Price:  NOK kr770.78
You save:  NOK kr220.25
DKK kr349.57
List Price:  DKK kr489.42
You save:  DKK kr139.85
NZ$84.34
List Price:  NZ$118.08
You save:  NZ$33.74
د.إ183.58
List Price:  د.إ257.04
You save:  د.إ73.45
৳5,470.71
List Price:  ৳7,659.43
You save:  ৳2,188.72
₹4,176.24
List Price:  ₹5,847.07
You save:  ₹1,670.83
RM239.12
List Price:  RM334.79
You save:  RM95.67
₦64,837.03
List Price:  ₦90,777.03
You save:  ₦25,940
₨13,875.73
List Price:  ₨19,427.14
You save:  ₨5,551.40
฿1,838.09
List Price:  ฿2,573.47
You save:  ฿735.38
₺1,625.07
List Price:  ₺2,275.24
You save:  ₺650.16
B$261.61
List Price:  B$366.28
You save:  B$104.66
R951.73
List Price:  R1,332.50
You save:  R380.77
Лв91.56
List Price:  Лв128.20
You save:  Лв36.63
₩68,725.22
List Price:  ₩96,220.81
You save:  ₩27,495.59
₪189.45
List Price:  ₪265.25
You save:  ₪75.79
₱2,860.16
List Price:  ₱4,004.45
You save:  ₱1,144.29
¥7,719.58
List Price:  ¥10,808.04
You save:  ¥3,088.45
MX$847.97
List Price:  MX$1,187.23
You save:  MX$339.25
QR181.87
List Price:  QR254.64
You save:  QR72.76
P688.94
List Price:  P964.57
You save:  P275.63
KSh6,648.67
List Price:  KSh9,308.67
You save:  KSh2,660
E£2,424.79
List Price:  E£3,394.91
You save:  E£970.11
ብር2,836.22
List Price:  ብር3,970.94
You save:  ብር1,134.71
Kz41,866.62
List Price:  Kz58,616.62
You save:  Kz16,750
CLP$48,936.71
List Price:  CLP$68,515.31
You save:  CLP$19,578.60
CN¥361.88
List Price:  CN¥506.66
You save:  CN¥144.78
RD$2,946.48
List Price:  RD$4,125.31
You save:  RD$1,178.83
DA6,722.93
List Price:  DA9,412.64
You save:  DA2,689.71
FJ$113.51
List Price:  FJ$158.92
You save:  FJ$45.41
Q387.68
List Price:  Q542.78
You save:  Q155.10
GY$10,436.32
List Price:  GY$14,611.69
You save:  GY$4,175.36
ISK kr7,041.59
List Price:  ISK kr9,858.79
You save:  ISK kr2,817.20
DH505.94
List Price:  DH708.36
You save:  DH202.41
L894.84
List Price:  L1,252.84
You save:  L358
ден2,883.38
List Price:  ден4,036.97
You save:  ден1,153.58
MOP$402.04
List Price:  MOP$562.89
You save:  MOP$160.85
N$948.82
List Price:  N$1,328.43
You save:  N$379.60
C$1,834.68
List Price:  C$2,568.70
You save:  C$734.02
रु6,672.62
List Price:  रु9,342.21
You save:  रु2,669.58
S/187.54
List Price:  S/262.58
You save:  S/75.03
K189.46
List Price:  K265.26
You save:  K75.80
SAR187.52
List Price:  SAR262.55
You save:  SAR75.02
ZK1,259.85
List Price:  ZK1,763.89
You save:  ZK504.04
L233.06
List Price:  L326.30
You save:  L93.24
Kč1,184.38
List Price:  Kč1,658.23
You save:  Kč473.85
Ft18,455.66
List Price:  Ft25,839.41
You save:  Ft7,383.74
SEK kr544.55
List Price:  SEK kr762.42
You save:  SEK kr217.86
ARS$43,452.58
List Price:  ARS$60,837.09
You save:  ARS$17,384.51
Bs345.19
List Price:  Bs483.29
You save:  Bs138.10
COP$195,545.84
List Price:  COP$273,779.82
You save:  COP$78,233.98
₡24,976.48
List Price:  ₡34,969.07
You save:  ₡9,992.59
L1,230.59
List Price:  L1,722.93
You save:  L492.33
₲368,897
List Price:  ₲516,485.32
You save:  ₲147,588.31
$U1,944.69
List Price:  $U2,722.73
You save:  $U778.03
zł202.91
List Price:  zł284.09
You save:  zł81.18
Already have an account? Log In

Transcript

Hello everyone, in this video session I am going to explain part 12 of selenium four that is no driver is suitable path or WebDriver manager is required Yes. So, in Selenium three okay. When we used to work in one of the versions in Selenium three he was to ask us okay and when we try to launch a new browser like this WebDriver driver is equal to new chrome driver. So okay. When you write as good this particular steps we used to get some error asking us to set the property that is we need to provide the we need to provide the path to the chromedriver xe file. Okay, before executing this particular statement, we need to provide the path to the chromedriver.

Exe file. So that is we used to like that is used to get this chrome driver exe file from this website. From here, we used to download it for example, if your Chrome browser version is like, here it is like 78 or something is there. So we used to download this chrome or 78 download this chrome window. So like these days, we used to get the EFC file. So other ways like we used to add this WebDriver manager thing also, okay.

If you don't want to view the download this chrome driver exe file, and there is another alternative way where you can add the WebDriver manager here, right? Try using WebDriver manager you don't have to download the required chromedriver HD file or any other things used to say WebDriver manager dot chrome driver dot exe setup. Okay, this used to work. So if you add this single step before this WebDriver driver, this new chrome driver, it will work. But guys, I'm observing something new. Okay.

While I was experimenting on this Selenium for a new futures, I observed that in Selenium fourth, currently we have this alpha three version. Okay, and the current version of selenium four I'm using is alpha three version as of today. Okay, it's available in the repository. Trying to use that. I observed that without providing this WebDriver manager, okay, without any need of this WebDriver manager and without any need of this pass to the chrome driver exe file. This Chrome browser is launching this using this single statement.

Okay, without needing any statements are part to the chrome driver. exe files. I'm able to learn the Chrome browser or Firefox browser or Internet Explorer without any problem. Okay. So that is one thing that I observed While I'm working with Selenium for alpha three version, okay, so don't know guys. So I was a little bit surprised because there is no information I didn't find such kind of information like regarding this anywhere on the web kind of surprised.

And I tried it many times to see whether whatever, whatever I am seeing is really correct or not okay, let's say, let me show you what I observed. Okay, let me create a fresh project, you can clearly see that I am not adding any chromedriver exe files already met WebDriver manager, Chrome driver dot setup or anything I'm not adding here. Okay. I'm creating a new project, let's say new other select this man and then Maven project. Click on Next. So I'm unclear of the reason guys but looks like it's something new has happened and there is no information on that on the web.

Okay, let's see where it goes. You can actually Let me know this, this is not happening in your case, you can definitely let me know. Okay, so that I, I can come to me about this, I can be more confident about what has actually happened is really working or not okay, for everyone, because I am observing in my machine, I just want to see whether you guys are also seeing the same kind of effect where you don't need this kind of chromedriver exe files or chrome driver setup. Okay, this is again, selenium four is still in experimenting state where a testing state is being going on we don't know what's going on and what they are going to release. So let's let's go with this demonstration for no and see. I would like to practically show that without any need of this driver executable.

I enter WebDriver manager and it will belong the browser's directly using the single object creation statement. So let me give you a project name say I will say silly. Okay. Without driver, Raj, okay. Some project is getting some project guys Copy paste this thing to make it simple look simple and finish okay Mavin project will be created now. Yeah, this is a man project it's a process is still going on Let's wait for this process to complete so that the project will be ready once this process is complete, then you can expand this and see that whatever you want, okay is coming up, then delete this default AP test or Java file.

And let's so this is a simple Maven project is let's configure this Maven project with Selenium four. Okay. So for that Selenium four is not officially released yet. And it's all information is available in this MV and repository for now. Okay, so it's still in the testing state. And features are in stable and future features are still working on.

So let's go to the Selenium Java of this MV and repository and as you can see here, the last version of selenium three is 3.14 1.5. And the latest version of selenium for it which is in silicon Still in Selenium alpha state, okay, alpha state alpha three is the latest version. So it's still in the testing state guys, and it's not officially released it. So let's go with the latest version, whatever that is available, even though it's not recommended in the real time projects, okay because it is an alpha state. The topic is dependency tax of selenium for alpha three and open this POM dot XML file, remove this unwanted dependency from this dependency stacks. And then is the Selenium for dependency and save it.

So when you save it, the Selenium for dependency will be automatically downloaded and configured in this project. Now, let's create a new class raise. Let me call this class as some demo class. Select this public static Weidman and inside this main method without creating any path to the driver chromedriver EFC file or chromedriver exe file or WebDriver manager chromedriver dot set up or something directly say WebDriver driver is equal to new chrome driver, I'm directly saying is okay without providing anything. I'm not providing any parts of the chrome driver exe file or WebDriver manager guys, I checked this multiple times and this is while still working for me, okay. very surprised about data import this interface and then import this chrome driver class.

Okay, and not doing any other things simply say which I am going to issue this face. Okay. The Chrome browser is launching. That means you see there is no need of any chrome priority c file path our web driver manager it's working is okay. Is it the chrome driver has been launched. The same thing is happening with other drivers also like I say Firefox driver.

Okay. import this. Okay. Oh, it will fight now run this Firefox browser. We'll launch without any need for any parts for Firefox driver exe file or driver manager statement. You see even the Firefox browser or has also launched Okay, it's working fine.

Now the next one is like Internet Explorer driver. Got it? on this. See, the Internet Explorer browser also has launched even the days since we don't have much information about why it is such kind of thing is happening like without any need of any driver IE xe files, we are able to launch the browsers right? Since we don't have any particular information for just for being the safe side. So let's So, we can actually use WebDriver manager for now okay WebDriver manager daughter.

Okay, for that we have to we have to actually add the dependency tags for the WebDriver manager. Let's go here search for WebDriver manager here and it will give you one link from Bonnie Garcia github.com body or WebDriver manager click on that somewhere on this page we will have the dependency tags for this driver manager copy that this is for Java guys. Okay paste into the between the dependency tax of this palm dot XML file of this project. Now, once that is done who are the most sorry, something happened. Second, those are the most important is WebDriver manager. Then dot chromedriver sorry, this is Internet Explorer.

So you can say it explorer i, where is that? A driver, okay, got set up. That's it. So just for safe said you can use it guys, but I just wanted to like inform everyone like, this is happening with me, okay without any need of this Web Server Manager also it's working but to be safe said let's keep this WebDriver manager for a few more days until we get some information on why this is happening. So guys, I'm able to launch the required browsers in Selenium without any need of any executable files or WebDriver manager stuff. Okay.

So which I wanted to share with you guys so if you see any difference and if you're not getting the same result, just let me know guys so that I will be like updated and if it is really upping the confidence, my confidence will increase. Okay, fine. That's it guys. In the next video session. I'm going to explain Another new feature of selenium four and that is using this window dot full Screen command is new Selenium four has this fullscreen method for this window, this window has lot of methods right in Selenium three also there are a lot of new methods after this window. But in this Selenium for a new feature has been added that is new method has been added that is fullscreen under this window method, okay to open a browser window and fullscreen.

So this thing I'm going to explain in detail in the next video session. So that's it guys see in the next video session. Thank you. Bye

Sign Up

Share

Share with friends, get 20% off
Invite your friends to LearnDesk learning marketplace. For each purchase they make, you get 20% off (upto $10) on your next purchase.