As always incredible and super explanation by you. The way you explained there is no 2nd way to read. Crisp and clear. Coz of you and your teaching style techniques, I became a full time Automation Tester in BIG MNC and also got switched the companies with the help of your videos. Thank you again and keep posting the same! :)
Thanks for reading through all the new documentation and explaining all in detail, even going to their code and talking about singleton pattern and making it easier for the community
Well explained with all the details. One more proof to follow you to catch up the innovation in qa field. Please keep up the good work & thank you Naveen.
A big thank you, for keeping us updated with the current world, with your simple explanation. Keep posting, Thank you again 😊 One humble request, can you please make a video on how to store screenshot s in word file for selenium 🙏. I am searching it for a long time
Great work ✌️👍. Naveen sir could you please create a video on how can we record selenium test cases in headless mode ? It would be a big help. You are our solution master ✌️.
Selenium c#, all scripts working fine on local. But on Azure cloud few buttons are not displaying...tried checking screenshot n pagesource. Also used dynamic wait with Relative locator. No luck. Any other option i need to try
Hi Naveen, As soon as 4.6.0 dependencies are added in pom.xml file Maven dependencies was getting disappeared under project. I tried to update project, Relaunch Eclipse no help.. Please suggest Now, when i try changing to 4.3.0, Maven dependencies are visible under project . How to resolve this issue
These New update changes whole scripting..now i cant even execute chrom it closes at once or get stuck with Data on tab....spent whole days finding fix but still same issue and no help.
Great work ✌👍Naveen. Just one question, when I try to get the driver pathe using " String chromePath= SeleniumManager.getInstance().getDriverPath("chromedriver"); " , it ask me to pass Capability instead of String parameter. Can you please tell me why? Note:- I am using 4.9 version now, when I use 4.6 it works fine!
Hi thanks for sharing this video, one question, will this work in an “on premise” environment shielded from the outside world with no possible way to download files freely? I.e , I’m working in an organization that manages the edge browser on all computers in a internal system because of security concerns. Will this fact dictate that I must download manually the files ever time or does this feature have capabilities to address these kind of issues?
@Naveen i am trying to implement this on my mac machine but it is giving me sessionNotcreated error everytime. Could you please help me out with that ?
My system is 64 bit but its internally downloading 32 bit chromedriver due to which i am getting WebDriverException or am i missing something ? can you please help
I have selenium 4.7.2, I tried doing this but getting this error message - "selenium.common.exceptions.WebDriverException: Message: 'geckodriver' executable needs to be in PATH." Kindly help Please.
hello sir I am new in selenium automation please guide me. is this video is enough to start automation ??? mean, i need to start automation in Java. for complete setup which thing i install at my laptop?? please reply me I am waiting for you help
Hi Naveen, I have upgraded the selenium version to 4.6.0 and started using selenium manager. This works fine when I execute tests from my local machine. However, when I run the tests trough Jenkins on remote linux machine then I get the following error. WARNING: Unable to obtain driver using Selenium Manager: Error running command: [/tmp/selenium-manager12628507843922721157034350472031708/selenium-manager, --driver, geckodriver] Any idea how to resolve this issue ?
Hi @naveen are there any tutorials on accelQ , since it's codeless automation , i am not really sure why there is no boom in market for the same. Can you please explain the same
I have not yet created a maven project on my old laptop and have not used selenium 4.6 yet. I was using WebdriverManager till today. But I still see that the respective browser drivers are downloaded to the path. For example - C:\Users ath_s\.cache\selenium\chromedriver\win32 It has folders such as '101.0.4951.41' and chromedriver.exe in each. So what does selenium manager.exe does exactly.
Naveen but why should be upgrade to selenium version 4.6 if my project use version 4.1.3 Is it just that I have remove the lines of code in driverfactory class having WebDriverManager.chromedriver.setup() Can you please explain the advantages of upgrading apart from one adv that it will auto download the compatible browser driver in cache folder.
@@naveenautomationlabs I am getting the below when I try to run my test on FireFox browser. Nov 17, 2022 5:28:15 PM org.openqa.selenium.remote.service.DriverService findExecutable WARNING: Unable to obtain driver using Selenium Manager: Error running command: [C:\Users\DELL\AppData\Local\Temp\selenium-manager2123979721843002427500424629988647\selenium-manager.exe, --driver, geckodriver] Build info: version: '4.6.0', revision: '79f1c02ae20' System info: os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '17.0.1' Driver info: driver.version: FirefoxDriver Exception in thread "main" java.lang.IllegalStateException: The path to the driver executable The path to the driver executable must be set by the webdriver.gecko.driver system property; for more information, see github.com/mozilla/geckodriver. The latest version can be downloaded from github.com/mozilla/geckodriver/releases at org.openqa.selenium.internal.Require$StateChecker.nonNull(Require.java:314) at org.openqa.selenium.remote.service.DriverService.findExecutable(DriverService.java:148) at org.openqa.selenium.firefox.GeckoDriverService.access$100(GeckoDriverService.java:45) at org.openqa.selenium.firefox.GeckoDriverService$Builder.findDefaultExecutable(GeckoDriverService.java:181) at org.openqa.selenium.remote.service.DriverService$Builder.build(DriverService.java:450) at org.openqa.selenium.firefox.GeckoDriverService.createDefaultService(GeckoDriverService.java:94) at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:99) at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:95)
Thanks Naveen ..it's working fine for selenium Java ..Anyone tried this selenium with C# language binding ..Could anyone help me to achive this using selenium with C# for edge browser..
Sir how about Linux Machin ? I tried the wardrive manager there but it was not working there. Will this work in Linux system! *i had added the web driver manager code here but I tried to remove the System.setProperty the Jenkins job was failing there. Do let me know if i am making any mistake here. /* This is for Jenkins execution - Linux Machine */
else if(System.getProperty("os.name").contains("Linux")){ try { if (browser.equalsIgnoreCase("chrome")) { System.setProperty("webdriver.chrome.driver", driverPath+File.separator+"Drivers"+File.separator+"chromedriver"); ChromeOptions options = new ChromeOptions(); options.setBinary("/usr/bin/google-chrome"); options.addArguments("headless"); options.addArguments("disable-gpu"); options.addArguments("no-sandbox"); options.setExperimentalOption("excludeSwitches", Collections.singletonList("enable-automation")); options.addArguments("disable-infobars"); options.addArguments("--disable-dev-shm-usage"); options.addArguments("--disable-browser-side-navigation"); options.setPageLoadStrategy(PageLoadStrategy.EAGER); WebDriverManager.chromedriver().setup(); driver = new ChromeDriver(options); driver.manage().window().setSize(new Dimension(1366,768)); } else if (browser.equalsIgnoreCase("firefox")) { FirefoxOptions options = new FirefoxOptions(); options.addArguments("headless"); options.setCapability("marionette", true); WebDriverManager.firefoxdriver().setup(); driver = new FirefoxDriver(options); System.out.println("FireFox Driver initialiezed"); driver.manage().window().setSize(new Dimension(1366,768)); }
else if (browser.equalsIgnoreCase("edge")) { EdgeOptions options= new EdgeOptions(); options.addArguments("headless"); WebDriverManager.edgedriver().setup(); driver = new EdgeDriver(options); driver.manage().window().setSize(new Dimension(1366,768)); }
}catch (Exception e) { System.out.println("Exception is from Linux-Jenkins" + e.getMessage()); } } /* The Jenkins linux part ends here*/
Thanks for creating video and explaining in detail.. Very well explained.. Thanks for keeping us updated with the latest trends and techniques.
It is a pleasure to hear you explain things so clearly, Naveen.
As always incredible and super explanation by you. The way you explained there is no 2nd way to read. Crisp and clear. Coz of you and your teaching style techniques, I became a full time Automation Tester in BIG MNC and also got switched the companies with the help of your videos.
Thank you again and keep posting the same! :)
I just tried the same in Selenium with python. It works amazing. Thanks Naveen 🙏
Thanks for reading through all the new documentation and explaining all in detail, even going to their code and talking about singleton pattern and making it easier for the community
Wow Naveen you never fail to impress me. your explanation and of various topics are spot on. Great!! Job
Hey Naveen, if you were not there with such amazing tutorials then i would have quit from automation testing profile
Well explained with all the details. One more proof to follow you to catch up the innovation in qa field. Please keep up the good work & thank you Naveen.
Cool feature...took care of setup DARD 😀😀
Thanks Naveen sir for the latest updates...it is you who makes our interview easy.
Excellent Update...!!! No more system property or WebDriverManager..!!
Superb Naveen. Ill will wait for a stable release to start implementing into my framework.
Just tried with Selenium Java. Working fine. Thanks for sharing and explaining such a nice features from selenium.
Thank you so much Naveen. I was really struggling with this browser compatibility issue when I switch from Eclipse to Aqua editor.
God bless Everyone😇
Thanks Naveen .......
For quick information.
This is a great feature, and thank you so much for explaining in a easy way!
thank you so much for clarification and so clear differentiated comparison between 4.5.0 and 4.6.0. Thanks
Awesome feature. Thanks Naveen👃
Great Work Naveen.
A big thank you, for keeping us updated with the current world, with your simple explanation.
Keep posting, Thank you again 😊
One humble request, can you please make a video on how to store screenshot s in word file for selenium 🙏. I am searching it for a long time
Great work ✌️👍. Naveen sir could you please create a video on how can we record selenium test cases in headless mode ? It would be a big help. You are our solution master ✌️.
great video! thank you, Naveen!
Selenium c#, all scripts working fine on local. But on Azure cloud few buttons are not displaying...tried checking screenshot n pagesource. Also used dynamic wait with Relative locator. No luck.
Any other option i need to try
Hi Naveen,
As soon as 4.6.0 dependencies are added in pom.xml file Maven dependencies was getting disappeared under project. I tried to update project, Relaunch Eclipse no help.. Please suggest
Now, when i try changing to 4.3.0, Maven dependencies are visible under project . How to resolve this issue
Thanks Naveen, nice explanation 👍👍👍👍🙏
Wowwww amazing thanks for sharing Sir
I am using Selenium "4.6.0" dependency still getting java.lang.IllegalStateException. What needs to be done here
These New update changes whole scripting..now i cant even execute chrom it closes at once or get stuck with Data on tab....spent whole days finding fix but still same issue and no help.
Thank you Naveen .. I tried, it is working fine for selenium with Java.. will it also work with Python..?
Great work ✌👍Naveen.
Just one question, when I try to get the driver pathe using " String chromePath= SeleniumManager.getInstance().getDriverPath("chromedriver"); " , it ask me to pass Capability instead of String parameter. Can you please tell me why?
Note:- I am using 4.9 version now, when I use 4.6 it works fine!
Hi thanks for sharing this video, one question, will this work in an “on premise” environment shielded from the outside world with no possible way to download files freely? I.e , I’m working in an organization that manages the edge browser on all computers in a internal system because of security concerns. Will this fact dictate that I must download manually the files ever time or does this feature have capabilities to address these kind of issues?
@Naveen i am trying to implement this on my mac machine but it is giving me sessionNotcreated error everytime. Could you please help me out with that ?
Hi Naveen , when I update the selenium version to 4.6.0 all my jars are disappeared and also not downloading updated wars
thanks for updating .However, need to ask , what about Firefox and Microsoft Edge? Do we need to still download exe for these two?
Thanks for uploading a amazing update
My system is 64 bit but its internally downloading 32 bit chromedriver due to which i am getting WebDriverException
or am i missing something ?
can you please help
I have selenium 4.7.2, I tried doing this but getting this error message - "selenium.common.exceptions.WebDriverException: Message: 'geckodriver' executable needs to be in PATH."
Kindly help Please.
Amazing feature bro
Can you please explain this for Python selenium too (On Pycharm)
Please make a tutorial on integration of JIRA in Playwright framework
How we can handle capabilities in Selenium 4.6 and above?
hello sir I am new in selenium automation please guide me.
is this video is enough to start automation ???
mean, i need to start automation in Java. for complete setup which thing i install at my laptop?? please reply me I
am waiting for you help
sir i am just waiting for your help to start automation in selenium using java. please, anyone help me for complete the setup
Thank you for informing. But i need help in hiding edge side bar new update in edge using chrome options and desired capabilities can you help??
How about the derived capabilities or headless browser initializing
No change
So now no more webdriver manager.... So sad for bonigracia !
he may be proud though. his work has influenced Selenium directly and made Selenium a better tool
@@alexkuzmichev9051 agree 💯
This is also by bonigarcia which is contributing in it
bonigracia is one of the contributors to this feature in 4.6.0.
Hi Naveen,
I have upgraded the selenium version to 4.6.0 and started using selenium manager. This works fine when I execute tests from my local machine. However, when I run the tests trough Jenkins on remote linux machine then I get the following error.
WARNING: Unable to obtain driver using Selenium Manager: Error running command: [/tmp/selenium-manager12628507843922721157034350472031708/selenium-manager, --driver, geckodriver]
Any idea how to resolve this issue ?
Hi @naveen are there any tutorials on accelQ , since it's codeless automation , i am not really sure why there is no boom in market for the same. Can you please explain the same
I dont have anything on accelQ as of now.
@@naveenautomationlabs but if we go ahead with it considering current trends is it feasible or scalable enough
I have not yet created a maven project on my old laptop and have not used selenium 4.6 yet. I was using WebdriverManager till today. But I still see that the respective browser drivers are downloaded to the path.
For example - C:\Users
ath_s\.cache\selenium\chromedriver\win32
It has folders such as '101.0.4951.41' and chromedriver.exe in each. So what does selenium manager.exe does exactly.
C:\Users
ath_s\.cache\selenium\chromedriver\win32 --- this is the cache folder maintained by webdrivermanager not by selenium-manager.
Will this works when we want to execute scripts in grid?
Hi Naveen I am following your channel I need your help for installation of eclipse and java and add jars.
thanks for updating us time to time 🙂
Illegal state exception error facing so how to solve this error
Naveen
but why should be upgrade to selenium version 4.6 if my project use version 4.1.3
Is it just that I have remove the lines of code in driverfactory class having WebDriverManager.chromedriver.setup()
Can you please explain the advantages of upgrading apart from one adv that it will auto download the compatible browser driver in cache folder.
If you want to get rid of WDM and browser drivers you need to use 4.6.0 version. You wont get this feature in 4.1.3.
@@naveenautomationlabs I am getting the below when I try to run my test on FireFox browser.
Nov 17, 2022 5:28:15 PM org.openqa.selenium.remote.service.DriverService findExecutable
WARNING: Unable to obtain driver using Selenium Manager: Error running command: [C:\Users\DELL\AppData\Local\Temp\selenium-manager2123979721843002427500424629988647\selenium-manager.exe, --driver, geckodriver]
Build info: version: '4.6.0', revision: '79f1c02ae20'
System info: os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '17.0.1'
Driver info: driver.version: FirefoxDriver
Exception in thread "main" java.lang.IllegalStateException: The path to the driver executable The path to the driver executable must be set by the webdriver.gecko.driver system property; for more information, see github.com/mozilla/geckodriver. The latest version can be downloaded from github.com/mozilla/geckodriver/releases
at org.openqa.selenium.internal.Require$StateChecker.nonNull(Require.java:314)
at org.openqa.selenium.remote.service.DriverService.findExecutable(DriverService.java:148)
at org.openqa.selenium.firefox.GeckoDriverService.access$100(GeckoDriverService.java:45)
at org.openqa.selenium.firefox.GeckoDriverService$Builder.findDefaultExecutable(GeckoDriverService.java:181)
at org.openqa.selenium.remote.service.DriverService$Builder.build(DriverService.java:450)
at org.openqa.selenium.firefox.GeckoDriverService.createDefaultService(GeckoDriverService.java:94)
at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:99)
at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:95)
From where does it downloads the exe?
Thanks for sharing. Will this works when we want to execute scripts in grid?
On grid, it's not needed. Selenium server and node or dockerized image of the browser will take care of it.
Can we automate api with selenium?
Webdriver manager had a limiation that if you were behind a vpn it wouldn't work, seems like this suffers with the same limitation
Thank you Naveen
Thanks Naveen ..it's working fine for selenium Java ..Anyone tried this selenium with C# language binding ..Could anyone help me to achive this using selenium with C# for edge browser..
@Naveen AutomationLabs Did you delete my message? I tried to reply to my own message but it was deleted.
We don't delete any messages.
Thank you so much
Good news at last
Wow
Nots
Sir how about Linux Machin ? I tried the wardrive manager there but it was not working there. Will this work in Linux system!
*i had added the web driver manager code here but I tried to remove the System.setProperty the Jenkins job was failing there. Do let me know if i am making any mistake here.
/* This is for Jenkins execution - Linux Machine */
else if(System.getProperty("os.name").contains("Linux")){
try {
if (browser.equalsIgnoreCase("chrome")) {
System.setProperty("webdriver.chrome.driver", driverPath+File.separator+"Drivers"+File.separator+"chromedriver");
ChromeOptions options = new ChromeOptions();
options.setBinary("/usr/bin/google-chrome");
options.addArguments("headless");
options.addArguments("disable-gpu");
options.addArguments("no-sandbox");
options.setExperimentalOption("excludeSwitches", Collections.singletonList("enable-automation"));
options.addArguments("disable-infobars");
options.addArguments("--disable-dev-shm-usage");
options.addArguments("--disable-browser-side-navigation");
options.setPageLoadStrategy(PageLoadStrategy.EAGER);
WebDriverManager.chromedriver().setup();
driver = new ChromeDriver(options);
driver.manage().window().setSize(new Dimension(1366,768));
}
else if (browser.equalsIgnoreCase("firefox")) {
FirefoxOptions options = new FirefoxOptions();
options.addArguments("headless");
options.setCapability("marionette", true);
WebDriverManager.firefoxdriver().setup();
driver = new FirefoxDriver(options);
System.out.println("FireFox Driver initialiezed");
driver.manage().window().setSize(new Dimension(1366,768));
}
else if (browser.equalsIgnoreCase("edge")) {
EdgeOptions options= new EdgeOptions();
options.addArguments("headless");
WebDriverManager.edgedriver().setup();
driver = new EdgeDriver(options);
driver.manage().window().setSize(new Dimension(1366,768));
}
}catch (Exception e) {
System.out.println("Exception is from Linux-Jenkins" + e.getMessage());
}
}
/* The Jenkins linux part ends here*/
Checkmate cypress.
yeah 😎
great video! thank you, Naveen!