Contents of this course: 🚀🚀🚀 00:00:00: Introduction and contents to this course 00:03:23: Installation of Intellij Idea in local machine 00:06:54: Verify java in local machine ( If not there then installation steps) & setting up of system & environment variables 00:15:34: Verify Maven in local machine ( If not there then installation steps) & setting up of system & environment variables 00:23:00: Create a Maven Project and add cucumber plugin to the Intellij IDE 00:28:51: Add cucumber dependencies: cucumber-java, cucumber-junit, cucumber-core of same version in POM xml 00:36:04: Add Selenium Web driver dependency in the POM xml 00:38:08: Why do need web driver manager and whats a web driver manager 00:43:03: Adding web driver manager to the POM xml 00:44:20: Adding folder structure to the project 00:47:15: Introduction to BDD framework 00:49:00: Application under Test and 3 scenarios that we need to automate 00:54:14: Creating feature files in the project as per the 3 scenarios that we need to automate 00:59:24: Introduction to the Page Object Model concept 01:03:02: Creating pages in the project as per the page object model 01:06:44: web element locators 01:07:30: Different types of web element locators 01:09:17: Types of Xpaths: Relative xpaths & Absolute xpaths 01:12:00: Creating step definitions 01:14:00: Creating Runner file 01:15:35: Using and invoking web driver manager 01:21:16: Updating runner file 01:24:31: Updating the first testcase 01:27:44: Running and debugging the first testcase 01:42:02: Creating the second testcase 02:15:02: Runner files setup 02:18:00: Creating and designing the 3rd testcase which involves the web table 02:36:57: Allure Reporting setup and integration with BDD framework Git hub link: github.com/aceautomationacademy/SeleniumCucumberWebDriverManager
not sure if you are awere, but since selenium 4.6 Boni's (Boni Garcia is part of selenium's dev team) Manager has been complely integrated to selenium,so you don't need to add the driver manager any more all it function is there in selenium
Hi arjun rao : Kindly find advanced topics on this It would cover topics like CICD, cloud, selenium Grid www.udemy.com/course/docker-for-automation-testing-beginner-to-expertise/
Hi Abhyuday, could you kindly confirm if your project build was successful. could you do a rebuild and then run. otherwise could you run 'mvn clean install' - which will ensure the latest libraries are installed in your project and run the test.
On 1:25:47 , you've changed the method name similar to the given step., Is it mandatory for all the test case method should has same name as the given step., however the step here we're metnioning in the @Given annotation?
Hi I am not able to set the maven path. I am getting error in CMD. Please could you help me with this. C:\Users\jyots>mvn -version 'mvn' is not recognized as an internal or external command, operable program or batch file.
Hi , on running the Logged in user View scenario, i am getting error as 'No features found at file:/C:/Users/Manav%20Sharma/Cucumberinfo/src/test/java/Features/LoggedIn.Feature' ,can you please guide how to resolve this as this path contains the feature file already?
@@aceautomationacademy6926 Yes i tried, now one more error is occurring with the mentioned error in my first comment of this video-Jul 19, 2024 6:48:33 PM io.cucumber.core.runtime.FeaturePathFeatureSupplier get
When i add click_hamburger_menu and click_signIn_link to home page of step definitions it is not working even after i do import. Is there any way you can help me out how to fixt it? Thank you
HI first of all thanks for the video, Actually from Selenium 4 there is no need to externally give the driver path neither using WebDriver Manager i think it by default pick the driver right. Is there any specific reason that we should use WebDriver manager ?
Hi Anuroop, You're correct! In Selenium 4, the WebDriver binaries are managed automatically, which eliminates the need to set the driver path manually or use an external WebDriver Manager. Selenium 4’s built-in driver management automatically downloads the correct version of the driver based on your browser and operating system. Reasons to Still Use WebDriver Manager Despite this built-in capability, there are still some specific reasons why you might choose to use WebDriver Manager: Version Control: WebDriver Manager allows you to specify exact versions of drivers, which can be crucial when dealing with compatibility issues between browser versions and drivers, especially in CI/CD environments where consistency is important. Handling Multiple Browsers: WebDriver Manager provides more flexibility and control when working with multiple browser versions or configurations. It simplifies the setup, especially in complex environments. Automatic Driver Updates: It keeps drivers up-to-date automatically, reducing the need to manually manage driver updates when browsers are updated. Custom Driver Configuration: WebDriver Manager offers various configuration options that aren’t available with Selenium's built-in driver management. This includes proxy settings, custom driver storage paths, and custom timeouts. Robustness and Reliability: WebDriver Manager has been in use for a long time and is trusted in many production systems for its robust handling of driver binaries. It also provides better error handling when issues arise, making it easier to debug. Compatibility and Community Support: WebDriver Manager is widely used, and it benefits from extensive community support and updates, which might be helpful in troubleshooting driver-related issues that arise.
Hello, how are you? Could you please add Spanish subtitles to the video so I can watch it? I really need what you're teaching, and I can't seem to find Spanish subtitles. I would really appreciate it. Thank you! Warm regards.
Hi Sir, i am new to selenium but still could able to follow your complete video and successfully setup and run. But when i try to run npm install i am getting the below error. could not able to find the root cause. please help me on this. PS C:\Users\user\IdeaProjects\MySelenium_1> npm install -g allure-commandline --save-dev npm : The term 'npm' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:1 + npm install -g allure-commandline --save-dev + ~~~ + CategoryInfo : ObjectNotFound: (npm:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException
Hi Soumya : yes I did. There was a small clip which was out of sequence in last video : hence it’s corrected in this new one. UA-cam doesn’t allow to change a video - only reload, hence this video is updated one. We will delete the previous one soon in 1 week or so
Hi: was your build successful, did you do rebuild and was it successful One more suggestion: after you download - could you run ‘mvn clean install’ and check
Contents of this course: 🚀🚀🚀
00:00:00: Introduction and contents to this course
00:03:23: Installation of Intellij Idea in local machine
00:06:54: Verify java in local machine ( If not there then installation steps) & setting up of system & environment variables
00:15:34: Verify Maven in local machine ( If not there then installation steps) & setting up of system & environment variables
00:23:00: Create a Maven Project and add cucumber plugin to the Intellij IDE
00:28:51: Add cucumber dependencies: cucumber-java, cucumber-junit, cucumber-core of same version in POM xml
00:36:04: Add Selenium Web driver dependency in the POM xml
00:38:08: Why do need web driver manager and whats a web driver manager
00:43:03: Adding web driver manager to the POM xml
00:44:20: Adding folder structure to the project
00:47:15: Introduction to BDD framework
00:49:00: Application under Test and 3 scenarios that we need to automate
00:54:14: Creating feature files in the project as per the 3 scenarios that we need to automate
00:59:24: Introduction to the Page Object Model concept
01:03:02: Creating pages in the project as per the page object model
01:06:44: web element locators
01:07:30: Different types of web element locators
01:09:17: Types of Xpaths: Relative xpaths & Absolute xpaths
01:12:00: Creating step definitions
01:14:00: Creating Runner file
01:15:35: Using and invoking web driver manager
01:21:16: Updating runner file
01:24:31: Updating the first testcase
01:27:44: Running and debugging the first testcase
01:42:02: Creating the second testcase
02:15:02: Runner files setup
02:18:00: Creating and designing the 3rd testcase which involves the web table
02:36:57: Allure Reporting setup and integration with BDD framework
Git hub link: github.com/aceautomationacademy/SeleniumCucumberWebDriverManager
not sure if you are awere, but since selenium 4.6 Boni's (Boni Garcia is part of selenium's dev team) Manager has been complely integrated to selenium,so you don't need to add the driver manager any more all it function is there in selenium
Thanks dagovf,
Thanks for the great insight - thanks for helping the community
Great video mate. To the point. I opened two pull requests take a look.
Thanks mate - sure will have a look
Hi, thanks for the video. Can you make an extension video to cover more topics? Parametrization, CI/CD and Cloud and parallel execution.
Hi arjun rao :
Kindly find advanced topics on this
It would cover topics like CICD, cloud, selenium Grid
www.udemy.com/course/docker-for-automation-testing-beginner-to-expertise/
@@aceautomationacademy6926 thanks.. Do you have a coupon for udmey.
@@aceautomationacademy6926 is there any promo for udmey
@@aceautomationacademy6926 Thank you for sharing. That course has good details.
You got a new subscriber today.
anyways, how can I get the ppt slide shown in allure section?
Hi sir thank you for your videos . Its really helpful . I am constantly getting null pointer exception after intializing driver. Please advise
Hi Abhyuday,
could you kindly confirm if your project build was successful. could you do a rebuild and then run. otherwise could you run 'mvn clean install' - which will ensure the latest libraries are installed in your project and run the test.
This is so good!!!!!!!
Glad it helped
Browser is not launching and I have used the same steps what you have followed and tried by changing the versions in POM.PLz reply asap
Too good, thanks a lot
Glad it helped!!
On 1:25:47 , you've changed the method name similar to the given step., Is it mandatory for all the test case method should has same name as the given step., however the step here we're metnioning in the @Given annotation?
Not needed, you can give your own method name
@@rameshdumpati7779 Thank you
Thanks for this video! It is amazing! But I wonder how can I create the allure.properties?
Good question!
It has been explained at 02:43:58 in the video!
Hope it makes sense and helpful
Thanks for the answer. When I open the folder they do not exist... @@aceautomationacademy6926
hi graok: yes you will have to create that properties file - it would not be there by default.
Why on this class section we dont have Hook class to manage before and after test anymore?
there is no much details on pom xml for allure and from where to pick it, and how to design it
Hello : i think you missed - It starts from 02:36:57: Allure Reporting setup and integration with BDD framework
@@aceautomationacademy6926 sorry to say this, But I also agree with @sonyiostest.... Please do another video on Allure reporting. I got lot of issues
allure cucumbe 6 dependency not working in mac OS..and also the plugin code
Hi I am not able to set the maven path. I am getting error in CMD. Please could you help me with this.
C:\Users\jyots>mvn -version
'mvn' is not recognized as an internal or external command,
operable program or batch file.
Hi Jyotsna,
Definitely the issue is maven is not there in the local machine
Kindly install maven
Hi , on running the Logged in user View scenario, i am getting error as 'No features found at file:/C:/Users/Manav%20Sharma/Cucumberinfo/src/test/java/Features/LoggedIn.Feature' ,can you please guide how to resolve this as this path contains the feature file already?
Hi manav,
can you check the glue path again - do a rebuild and check
@@aceautomationacademy6926 Yes i tried, now one more error is occurring with the mentioned error in my first comment of this video-Jul 19, 2024 6:48:33 PM io.cucumber.core.runtime.FeaturePathFeatureSupplier get
When i add click_hamburger_menu and click_signIn_link to home page of step definitions it is not working even after i do import. Is there any way you can help me out how to fixt it? Thank you
HI first of all thanks for the video, Actually from Selenium 4 there is no need to externally give the driver path neither using WebDriver Manager i think it by default pick the driver right. Is there any specific reason that we should use WebDriver manager ?
Hi Anuroop,
You're correct! In Selenium 4, the WebDriver binaries are managed automatically, which eliminates the need to set the driver path manually or use an external WebDriver Manager. Selenium 4’s built-in driver management automatically downloads the correct version of the driver based on your browser and operating system.
Reasons to Still Use WebDriver Manager
Despite this built-in capability, there are still some specific reasons why you might choose to use WebDriver Manager:
Version Control: WebDriver Manager allows you to specify exact versions of drivers, which can be crucial when dealing with compatibility issues between browser versions and drivers, especially in CI/CD environments where consistency is important.
Handling Multiple Browsers: WebDriver Manager provides more flexibility and control when working with multiple browser versions or configurations. It simplifies the setup, especially in complex environments.
Automatic Driver Updates: It keeps drivers up-to-date automatically, reducing the need to manually manage driver updates when browsers are updated.
Custom Driver Configuration: WebDriver Manager offers various configuration options that aren’t available with Selenium's built-in driver management. This includes proxy settings, custom driver storage paths, and custom timeouts.
Robustness and Reliability: WebDriver Manager has been in use for a long time and is trusted in many production systems for its robust handling of driver binaries. It also provides better error handling when issues arise, making it easier to debug.
Compatibility and Community Support: WebDriver Manager is widely used, and it benefits from extensive community support and updates, which might be helpful in troubleshooting driver-related issues that arise.
Thanks for the detailed explanation
@@anuroop7450 : thanks again
Hello, how are you? Could you please add Spanish subtitles to the video so I can watch it? I really need what you're teaching, and I can't seem to find Spanish subtitles. I would really appreciate it. Thank you!
Warm regards.
Hello,
Try now - have added Spanish subtitles as well
Hi Sir, i am new to selenium but still could able to follow your complete video and successfully setup and run. But when i try to run npm install i am getting the below error. could not able to find the root cause. please help me on this.
PS C:\Users\user\IdeaProjects\MySelenium_1> npm install -g allure-commandline --save-dev
npm : The term 'npm' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of
the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ npm install -g allure-commandline --save-dev
+ ~~~
+ CategoryInfo : ObjectNotFound: (npm:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
Hi Venu,
This error is appearing as node is not installed in your machine- kindly install node and retry
@@aceautomationacademy6926 Thanks, but i have already installed its v20.18.0. Please guide me if something else is missing. thanks
Hi Sir, I am not able to install allure command through inteli terminal. Please help me to resolve this error
Hi,
what error are you getting when tried to enter the allure command - could you kindly provide that
How to link it to Jenkins?
there is another video for jenkins configuration for selenium
hello, i think you have re-uploaded this video.
Hi Soumya : yes I did. There was a small clip which was out of sequence in last video : hence it’s corrected in this new one. UA-cam doesn’t allow to change a video - only reload, hence this video is updated one. We will delete the previous one soon in 1 week or so
@@aceautomationacademy6926 i have one doubt how can we run this script through jenkins? if you could do this . then it could be an end to end project.
@@aceautomationacademy6926hello, i had one doubt. how can we run this script using jenkins? and which command to use in jenkins environment?
like can we use mvn command? like mvn -test
Yes ‘mvn-test’ command will run the tests as it’s a maven project
yeah hi
i am getting 404 error in reports, i just cloned the repo and made it run i have java 11 and remaining things got ready
Hi: was your build successful, did you do rebuild and was it successful
One more suggestion: after you download - could you run ‘mvn clean install’ and check
@@aceautomationacademy6926 now only I noticed for me 'cucumber-html-report' is not generating
Hi Rahul krishna: was the build successful, are the tests running successfully for you in local before report generation- kindly confirm
Hi Can you share me your git link for this project
github.com/aceautomationacademy/SeleniumCucumberWebDriverManager
Hope it was useful and helped!
Thanks for sharing