Selenium Cucumber Java BDD Framework 2 - First Selenium Test | Windows | Step by Step | Raghav Pal

  Рет қаралды 237,738

Automation Step by Step

Automation Step by Step

Күн бұрын

Пікірлер: 478
@RaghavPal
@RaghavPal 2 жыл бұрын
In case you face issues generating HTML REPORT then under target folder manually create a folder named HtmlReports and in the code add the following: plugin= {"pretty", "html:target/HtmlReports/report.html"} (names can be changed)
@thelonewolfedits
@thelonewolfedits 2 жыл бұрын
One doubt. I am getting The method implicitlyWait(long, TimeUnit) from the type Web driver.Timeouts is deprecated. Any suggestions what to do?
@anmolgarg7232
@anmolgarg7232 4 жыл бұрын
Man you have explained each and everything so beautifully and detail oriented, also when you mention the minute details like + sign or pess crtl A+ ctrl I. It's just amazing.
@RaghavPal
@RaghavPal 4 жыл бұрын
So happy to hear this Anmol
@anjalishinde7697
@anjalishinde7697 Жыл бұрын
Thank You sir for Ctrl A + Ctrl I
@Sara-ry4rs
@Sara-ry4rs 9 ай бұрын
Every time I watch your videos you inspire me more and more to learn, my English is not perfect but I understand you very well, that has never happened to me, I paid some courses in my language and paused them, your videos are better. You are truly the best, thank you for all the material, you help me a lot.
@RaghavPal
@RaghavPal 9 ай бұрын
So happy and humbled to read this.. thanks Sara
@sunilpanchal1472
@sunilpanchal1472 2 жыл бұрын
Anyone got the teacher like you then no one want to Stop learning Raghav sir ..special thanks to you
@RaghavPal
@RaghavPal 2 жыл бұрын
So happy to read your message Sunil
@flirtuall78
@flirtuall78 9 ай бұрын
Hello Raghav - I just finished watching this video. I must say the simplicity is your strength. You have designed your sessions in a very easy to understand manner. Thank you for sharing your knowledge with word. I loved your story of becoming full time teacher to follow your passion. More power to you.
@RaghavPal
@RaghavPal 9 ай бұрын
Thanks a lot for the kind words Harsh.. humbled
@mcsabotage9679
@mcsabotage9679 Жыл бұрын
Omg you are one of the best one. why didn't i see your post 2 years back? i really salute you
@RaghavPal
@RaghavPal Жыл бұрын
Thanks a lot
@IshwarMusical
@IshwarMusical 8 ай бұрын
Your way of teaching is just fantastic....and you are truly justifying your You tube channel name as....Step by step...Thanks a lot
@RaghavPal
@RaghavPal 8 ай бұрын
So nice of you Ishwar.. humbled
@tejasp6469
@tejasp6469 3 жыл бұрын
A big salute to your Passion and Mission Raghav. Thank you so much for teaching us each topic in depth ❤🙏
@RaghavPal
@RaghavPal 3 жыл бұрын
Most welcome Tejas
@sintiaAngarita
@sintiaAngarita Ай бұрын
I am thoroughly enjoying these sessions, you explain everything so well with such level of details. Learn bunch on tricks working with mad Eclipse. You are wonderful, thank you for all the effort your are putting into your videos. I realize this is an older video, but still so relevant. Thank you!!!
@RaghavPal
@RaghavPal Ай бұрын
Great to hear Sintia.. keep learning
@08mitali
@08mitali Жыл бұрын
Thanks Raghav , you saved my career. Thanks for your all quality sessions.
@RaghavPal
@RaghavPal Жыл бұрын
Most welcome Mitali. Humbled
@mcesaralmeida
@mcesaralmeida 3 жыл бұрын
Hi Raghav, I have no words to express my gratitude about this tutorial and others . Your tutorials are a reference to automation. Amazing work.
@RaghavPal
@RaghavPal 3 жыл бұрын
You are most welcome
@villagetechstop3920
@villagetechstop3920 3 жыл бұрын
i'm following ur courses for the past 4 days .. you have explained things clear and slowly.. and even u point out useful tips.. Specially end message interesting. you are far more than I expected.. thank you for sharing the knowledge
@RaghavPal
@RaghavPal 3 жыл бұрын
So happy n humbled to see your message Sathish
@mkhadka123
@mkhadka123 2 жыл бұрын
After finding you, I feel like I will "Never Stop Learning".
@RaghavPal
@RaghavPal 2 жыл бұрын
All the best Mandeep
@rana_ny
@rana_ny Жыл бұрын
brother you did the explenation better then others...God bless you ..
@RaghavPal
@RaghavPal Жыл бұрын
Thank you so much 😀 Humbled
@rashmidhandar8029
@rashmidhandar8029 4 ай бұрын
@Raghav Pal I love watching your video. Very Detailed & nicely articulated. Excellent place for beginners
@RaghavPal
@RaghavPal 4 ай бұрын
So nice of you Rashmi
@mzamomahaeng268
@mzamomahaeng268 3 жыл бұрын
He is my Guru... i present things at work all because of your videos. 😊 🙏 😊 🙏 thanks again sir
@RaghavPal
@RaghavPal 3 жыл бұрын
All the best Mzamo
@sayedibrahimsadat7060
@sayedibrahimsadat7060 4 жыл бұрын
Thank you Mr. Raghav, you are great! I really learned a lot from your lectures . They are all excellent!
@RaghavPal
@RaghavPal 4 жыл бұрын
Most welcome Sayed
@hindustani7566
@hindustani7566 3 жыл бұрын
For me u r Just brilliant out of all QA automation youtubers....
@RaghavPal
@RaghavPal 3 жыл бұрын
Thanks a lot
@mayankjain9941
@mayankjain9941 4 жыл бұрын
Very nicely explained Raghav Bhai. Awesome...Good presentation. I have run my first cucumber project with the help of your video.
@RaghavPal
@RaghavPal 4 жыл бұрын
So happy to know this Mayank. Keep learning
@Ahmadsadiq21
@Ahmadsadiq21 Жыл бұрын
Thank you sir for the wonderful explanation. You are one of the best instructors.
@RaghavPal
@RaghavPal Жыл бұрын
You are very welcome Ahmad
@juliocesargonzalez3079
@juliocesargonzalez3079 2 ай бұрын
I really appreciate your videos, the examples and explanation are very clear.
@RaghavPal
@RaghavPal 2 ай бұрын
Most welcome Julio
@revathikamaraj6650
@revathikamaraj6650 2 жыл бұрын
Thank you so much. 3 days I trying to execute the cucumber code. Now only I can able to open the chrome browser. Thank you soooo much...
@RaghavPal
@RaghavPal 2 жыл бұрын
You are most welcome Revathi
@sabanamondal5829
@sabanamondal5829 8 ай бұрын
Hi @Ragav I am facing issue.. Chrom is not launching getting error.. How can I connect with you
@revathikamaraj6650
@revathikamaraj6650 8 ай бұрын
@@sabanamondal5829 What is the error showing in the console?
@suvinpt5901
@suvinpt5901 3 ай бұрын
Thanks you raghav to give your knowledge to others.
@RaghavPal
@RaghavPal 3 ай бұрын
Most welcome Suvin
@KaushikMitra-g2u
@KaushikMitra-g2u 6 ай бұрын
Truly awesome explanation Raghav !!!
@RaghavPal
@RaghavPal 6 ай бұрын
Thanks a lot Kaushik
@crazygoogle902
@crazygoogle902 3 жыл бұрын
Hello sir.. Very useful session. I followed this steps continued to before session.. All are working without any errors..
@RaghavPal
@RaghavPal 3 жыл бұрын
Excellent
@kanchankottawar6241
@kanchankottawar6241 2 ай бұрын
Hats off to you Sir , in such simple terms you have explained the basic concepts. And the tag line is very motivating, never stop learning 🙂
@RaghavPal
@RaghavPal 2 ай бұрын
Thanks a ton Kanchan
@nellainayagam7540
@nellainayagam7540 8 ай бұрын
Simply wow just started to watching this channel ,,Amazing stuff,,,Mr:Raghav u r such an outstanding teacher,,Well explained each and every step,,Thats what all we needed,,,Hatsoff to ur efforts. pls keep up ur good work,,It is very useful for learners.
@RaghavPal
@RaghavPal 8 ай бұрын
So nice of you Nellai. i will..
@suk1607
@suk1607 2 жыл бұрын
Thank you sir, i really dont known how to thank you, after watching your vedio really felt like enlightened. and confident...
@RaghavPal
@RaghavPal 2 жыл бұрын
You are most welcome
@monicagoyal8225
@monicagoyal8225 3 жыл бұрын
Thanks alot Raghav for your outstanding way of explaining things.
@RaghavPal
@RaghavPal 3 жыл бұрын
So nice of you Monica
@swethaputti
@swethaputti 3 жыл бұрын
Hi Raghav your inspiring and motivational messages always wakes me up, also doing great help to all. Proud your Between us. Thank you, I appreciate.
@RaghavPal
@RaghavPal 3 жыл бұрын
So nice of you Swetha, humbled
@london01jk
@london01jk 3 жыл бұрын
Hi Mr Raghav, That is superb. step by step...... Perfectly working good and even i have modified my own search. it is perfect. Thanks for making it. Jeyakumar, Housto, Texas
@RaghavPal
@RaghavPal 3 жыл бұрын
You are most welcome Jeyakumar, Houston was my first US city
@akil9769
@akil9769 4 жыл бұрын
Hi Raghav, your work is outstanding. I love watching all your videos, and the way you present ALL your tutorials. Are you going to make a complete E2E Cucumber Framework????
@RaghavPal
@RaghavPal 4 жыл бұрын
I will plan to cover most of the features. Thanks a lot for your message. Humbled
@dhafeuraya8353
@dhafeuraya8353 2 жыл бұрын
Thank you Mr Raghav Pal for your videos; it's amazing and yes it's the STEP BY STEP courses not like others channels ;) Thank you so much
@RaghavPal
@RaghavPal 2 жыл бұрын
So nice of you
@srikanthbolisetty1417
@srikanthbolisetty1417 4 жыл бұрын
Hi Raghav, I have gone through session1 and session2. Both sessions are very well explained, I have executed and overcome all errors on my own. Thanks a lot!
@RaghavPal
@RaghavPal 4 жыл бұрын
Glad to hear that Srikanth
@aylinbekem3701
@aylinbekem3701 2 жыл бұрын
You are always positive . Thank you for your hard work..
@RaghavPal
@RaghavPal 2 жыл бұрын
most welcome Aylin
@pankajrathod5358
@pankajrathod5358 2 жыл бұрын
Thank you so much Raghav for this Cucumber BDD series.
@RaghavPal
@RaghavPal 2 жыл бұрын
Most welcome Pankaj
@TechEZone777
@TechEZone777 Жыл бұрын
Thanks Ragav, Thanks for your valuable information and valuable word's, I won't stop learning and will also share my knowledge 😃 for everyone like you.
@RaghavPal
@RaghavPal Жыл бұрын
All the best
@HoangLe-f3w5e
@HoangLe-f3w5e 10 ай бұрын
just start to learn Cucumber, very helpful, thanks for sharing, keep it up!
@RaghavPal
@RaghavPal 10 ай бұрын
Glad it was helpful Hoang Le
@jaxonella
@jaxonella 4 жыл бұрын
Wow, just amazing tutorial, thank you. I don't comment on many videos I watch on KZbin, but I had to for this one. Thank you Raghav.
@RaghavPal
@RaghavPal 4 жыл бұрын
This is very humbling
@pakihaider1
@pakihaider1 2 жыл бұрын
Very nice and clearly explained each and every step. Thank you
@pakihaider1
@pakihaider1 2 жыл бұрын
How can I get in touch with you? I sent you DM on your Instagram
@RaghavPal
@RaghavPal 2 жыл бұрын
You' re welcome Zeshan, you can send me messages here
@subbukakani1879
@subbukakani1879 3 жыл бұрын
Super sir totally and easily understanble
@RaghavPal
@RaghavPal 3 жыл бұрын
Great to know
@srirudy2678
@srirudy2678 4 жыл бұрын
Awesome, Ran my first cucumber test today. You Rock!
@RaghavPal
@RaghavPal 4 жыл бұрын
So happy to know this. All the best
@belodushiva156
@belodushiva156 4 жыл бұрын
Awesome explanation sir. Thank you for sharing your knowledge with every one.!!
@RaghavPal
@RaghavPal 4 жыл бұрын
Thanks and welcome Belodu
@manishchavan1760
@manishchavan1760 2 жыл бұрын
Great video Sirji, Thank you!
@RaghavPal
@RaghavPal 2 жыл бұрын
Most welcome!
@monishakarthik1545
@monishakarthik1545 4 жыл бұрын
Hi Raghav, your videos are great source to learn, a big applause for your efforts. Thanks a lot.
@RaghavPal
@RaghavPal 4 жыл бұрын
You are most welcome Monisha
@ambadip
@ambadip 4 жыл бұрын
Hi Raghav, Your explanation is awesome,easily understandable by a beginner.Thanks for all your hard work.
@RaghavPal
@RaghavPal 4 жыл бұрын
You're most welcome. So happy to see this message Siddharthi
@saraswathimm06
@saraswathimm06 Жыл бұрын
Excellent explanation 🎉🎉🎉🎉🎉🎉
@RaghavPal
@RaghavPal Жыл бұрын
Thanks
@sahilkakkar7550
@sahilkakkar7550 4 жыл бұрын
Thank you Raghav Sir , i love u r teaching skill please make full playlist of Bdd cucumber frameworks and all concept 🙏🙏🙏
@RaghavPal
@RaghavPal 4 жыл бұрын
I will try my best Sahil
@testingdataengineeringforr5082
@testingdataengineeringforr5082 4 жыл бұрын
Thanks a ton raghav for all you videos. God bless you!!!
@RaghavPal
@RaghavPal 4 жыл бұрын
So nice of you Bala
@stellachoi3583
@stellachoi3583 3 жыл бұрын
Thanks so much. love your kind explanation. Thanks so much
@RaghavPal
@RaghavPal 3 жыл бұрын
You are so welcome Stella
@myWayIn619
@myWayIn619 3 жыл бұрын
The ending was Great!
@RaghavPal
@RaghavPal 3 жыл бұрын
Thanks for watching Frank
@ananthacharybeethajo5872
@ananthacharybeethajo5872 3 жыл бұрын
Excellent articulation .
@RaghavPal
@RaghavPal 3 жыл бұрын
Thanks Anantha
@jaynagrath4387
@jaynagrath4387 3 жыл бұрын
nice work Bro, You are life changer
@RaghavPal
@RaghavPal 3 жыл бұрын
Thanks Jay
@teamthundersbhongir1905
@teamthundersbhongir1905 Жыл бұрын
Thanks a lot for your support with your videos ❤️
@RaghavPal
@RaghavPal Жыл бұрын
So nice of you
@deepakblr2364
@deepakblr2364 9 ай бұрын
Well explained. I am your big fan Raghav Bhai :)
@RaghavPal
@RaghavPal 9 ай бұрын
Thanks a lot Deepak
@Jeekster72
@Jeekster72 7 ай бұрын
Thanks a lot. Very informative.
@RaghavPal
@RaghavPal 6 ай бұрын
You are welcome!
@anzofire35
@anzofire35 2 жыл бұрын
Very impressed with your videos. Love the step by step guides. Keep up the good work
@RaghavPal
@RaghavPal 2 жыл бұрын
Glad you like them Anzo
@rabitminder
@rabitminder 4 жыл бұрын
Hi Ragav, Very nice session Thanks
@RaghavPal
@RaghavPal 4 жыл бұрын
Always welcome
@saeedmontazeralih3280
@saeedmontazeralih3280 3 жыл бұрын
Hi Raghav, thank you very much for your great Job.
@RaghavPal
@RaghavPal 3 жыл бұрын
Most Welcome Saeed
@suchishah8332
@suchishah8332 3 жыл бұрын
Awesome explanation
@RaghavPal
@RaghavPal 3 жыл бұрын
Most welcome Suchi
@reddevilmelbourne
@reddevilmelbourne 2 жыл бұрын
GOAT of automation
@RaghavPal
@RaghavPal 2 жыл бұрын
Humbled, thanks for your kind words Akhil
@harisake6068
@harisake6068 3 жыл бұрын
excellent work .......learned more !!!
@RaghavPal
@RaghavPal 3 жыл бұрын
glad to know Hari
@madhavivlog7586
@madhavivlog7586 3 жыл бұрын
Thank you Ragav , you given me a clear picture
@RaghavPal
@RaghavPal 3 жыл бұрын
Glad to know Madhu
@mklles6933
@mklles6933 3 жыл бұрын
Thank you so much for this sir! Very well explained👍
@RaghavPal
@RaghavPal 3 жыл бұрын
Most welcome
@ankitanand695
@ankitanand695 3 жыл бұрын
You are great sir👍☺️
@RaghavPal
@RaghavPal 3 жыл бұрын
Thanks Ankit Humbled
@amitbhardwaj7824
@amitbhardwaj7824 4 жыл бұрын
very well define keep uploading
@RaghavPal
@RaghavPal 4 жыл бұрын
Thank you, I will Amit
@akashkhandagale6955
@akashkhandagale6955 2 жыл бұрын
Great sir thank you very much
@RaghavPal
@RaghavPal 2 жыл бұрын
Most welcome Akash
@thomas_724
@thomas_724 11 ай бұрын
Outstanding!
@RaghavPal
@RaghavPal 11 ай бұрын
Glad you like it Thomas
@arpanabhardwaj6421
@arpanabhardwaj6421 3 жыл бұрын
informative lecture !! every thing is clear kudos to you :)
@RaghavPal
@RaghavPal 3 жыл бұрын
Thanks a ton Arpana
@sonali420
@sonali420 3 жыл бұрын
Hi Raghav, I tried same scenario but getting error message The driver executable does not exist: C:\Users\bajaj\eclipse-workspace\Dir\src\test esources\driver i printed user.dir command got this output C:\Users\bajaj\eclipse-workspace\Dir what i am using in path System.setProperty("webdriver.chrome.driver",path+"/src/test/resources/driver"); according to my understanding its taking backward slash and i am entering forward slash but when i try backward slash it gives me complie tim error
@RaghavPal
@RaghavPal 3 жыл бұрын
Hi Sonali, forward slash is fine, the path should be upto chromedriver.exe. Pls add that and also try to print the value of path+"/src/test/resources/driver to confirm
@gaur_sisters
@gaur_sisters 2 жыл бұрын
Thank u so much raghav sir
@RaghavPal
@RaghavPal 2 жыл бұрын
Most welcome Shivani
@lanaandsam07
@lanaandsam07 2 жыл бұрын
For anybody following, and getting the 'cookies' message when the google page is loaded, a simple addition to the feature and steps file works wonders ;)
@RaghavPal
@RaghavPal 2 жыл бұрын
What exactly is the addition in script, Pls comment for helping others
@suk1607
@suk1607 2 жыл бұрын
SIr, pagetimeout and implicitwait is deprecated...What is this depcrecated means? how i can over come this issue?....Thank u for this beautiful vedio....
@RaghavPal
@RaghavPal 2 жыл бұрын
deprecated means this function was available in earlier version but is discontinued in this version, you can check the alternatives
@shreyagangopadhyay3111
@shreyagangopadhyay3111 6 ай бұрын
I have 2 questions from your first two videos: 1. At the end I see only 1 test was run and JUnit report generated for Google Search test that you created in this video but why did it not run the test for Login feature which you created in the previous video? 2. This is a continuation of the previous question: The test runner class points to the folder containing of the feature files and the folder containing the step definition files but the feature file and step definition files do not have a 1:1 mapping. Then when running the JUnit test how will the feature file know which step definition file to look for if more than 1 step definition file have the same steps defined? For example common steps like opening a browser will be same across all tests. Thanks for the video! I hope to hear back from you on these questions!
@RaghavPal
@RaghavPal 6 ай бұрын
Shreya 1. If you point the timestamps of the parts you are referring to it will be easier for me to check. I believe i ran the particular feature file, so it ran that feature only 2. Please elaborate on what is meant by 1:1 mapping Let me know so I can provide specific inputs
@shreyagangopadhyay3111
@shreyagangopadhyay3111 6 ай бұрын
Thanks for your reply Raghav! I saw the video again and at 26:52 the feature file name was mentioned specifically and not the file location name. So that answers my first question. For the second question I mean that if I run the feature file, the glue code mentions the name of the step definition location folder and not the exact step definition file then how will the feature file know which of the step definition file to look for the steps mentioned? Will it check all the step definition files in that folder for the steps? And if so, what happens when 2 or more files have the same steps mentioned? For example one feature file is for login to Google and another is for Google search. Both will include the URL of navigating to Google page and step definition will contain the same steps for both. Then if I choose to run one of the feature file, how will it know which step definition file to run?
@RaghavPal
@RaghavPal 6 ай бұрын
Shreya Great question! When you run a feature file in a Cucumber project, the glue code doesn't need to specify the exact step definition file. Instead, it specifies the package where the step definition files are located. Here's how it works: 1. Step Definitions Search: Cucumber will search through all the step definition files in the specified package for the steps mentioned in the feature file. It doesn't matter how many step definition files there are in the package, Cucumber will check all of them. 2. Duplicate Steps: If two or more step definition files have the same steps mentioned, Cucumber will throw an `AmbiguousStepDefinitionsException`. This is because Cucumber wouldn't know which step definition to use. It's best practice to ensure that each step is defined only once across all step definition files. 3. Shared Steps: In your example, if both the "login to Google" and "Google search" feature files include the step of navigating to the Google page, you can define this step in a common step definition file that both feature files can use. This way, you avoid duplicate step definitions and keep your code DRY (Don't Repeat Yourself). So, when you choose to run a feature file, Cucumber will look at the steps in the feature file, then search the specified package for step definition files that define those steps. It doesn't need to know ahead of time which specific step definition file to use. I hope this clears up your question
@shreyagangopadhyay3111
@shreyagangopadhyay3111 6 ай бұрын
@@RaghavPal thank you so much for the detailed explanation. This really helps a lot! Thank you so much for your time and effort in answering my doubts, I really appreciate the help! 😊
@brijeshray1522
@brijeshray1522 Жыл бұрын
I am like your session
@RaghavPal
@RaghavPal Жыл бұрын
Thanks a lot Brijesh
@fraidoonsaheebzada3898
@fraidoonsaheebzada3898 4 жыл бұрын
wow that was great tutorial
@RaghavPal
@RaghavPal 4 жыл бұрын
Glad you liked it Faridoon
@ramratan12
@ramratan12 3 жыл бұрын
Great session , really :)
@RaghavPal
@RaghavPal 3 жыл бұрын
Thanks a lot Ram
@abdessalemguesmi2394
@abdessalemguesmi2394 4 жыл бұрын
simple work, we can use for all browsers the magic webdrivermanager ;-))
@RaghavPal
@RaghavPal 4 жыл бұрын
Yes, I have shown it in Selenium tutorials - kzbin.info/www/bejne/bqe6hZqvpKxjpMU
@rohitnarkhedkar4337
@rohitnarkhedkar4337 2 жыл бұрын
Very good..
@RaghavPal
@RaghavPal 2 жыл бұрын
Thanks
@zulminanahmed9489
@zulminanahmed9489 3 жыл бұрын
Superb
@RaghavPal
@RaghavPal 3 жыл бұрын
Thanks 🤗
@rahulsharma-sd4ko
@rahulsharma-sd4ko 4 жыл бұрын
Hi Raghav, thanks for all you do. I'm facing an issue when I followed your first video at that my feature file was able to find and run my step definition file accordingly. But when I follow your Part 2 video - I'm running the feature file (GoogleSearch.feature) then it is not able to fetch and run the code from steps definition file (GoogleSearchSteps.java) Can you please help me out why it is not fetching and running my step definition file ? This is the console result coming every time I run the feature file ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Scenario: Validate google search is working as expected # src/test/resources/Features/GoogleSearch.feature:3 0 Scenarios 0 Steps 0m0.291s --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi Rahul, pls check the statements in given, when, then and see if there are duplicate steps in step definition file. You can also create and check with a new one
@rahulsharma-sd4ko
@rahulsharma-sd4ko 4 жыл бұрын
@@RaghavPal thanks for the reply first of all. I already checked and tried with creating a new feature file with correct Given, When, And and Then statements. Don't know what is the issue is. Is there anyway where I can connect with you to solve this problem? If it's possible then it would be a great help. Thanks again!
@RaghavPal
@RaghavPal 4 жыл бұрын
You can email me raghav.qna@gmail.com, but it can take sometime as I have to go through lots of mails everyday
@rahulsharma-sd4ko
@rahulsharma-sd4ko 4 жыл бұрын
@@RaghavPal Thank you so much for your support. I really appreciate your dedication to help other.
@mariadelpilargarciaprieto5018
@mariadelpilargarciaprieto5018 4 жыл бұрын
Hi Guys, I have the same error @ rahul sharma, please Let me know how can I resolve this. Thanks so much
@nehasartape-pm1bm
@nehasartape-pm1bm 3 ай бұрын
Thank you so much sir
@RaghavPal
@RaghavPal 3 ай бұрын
Most welcome Neha
@Kereeeeeee
@Kereeeeeee 2 жыл бұрын
Hey there! Great video
@RaghavPal
@RaghavPal 2 жыл бұрын
Yes, we can do
@saimichael5467
@saimichael5467 Жыл бұрын
Hi sir this is sairam, first i have to thank you because of your videos I've gained so much knowledge, sir i I'm not able to enter the text in the search fields showing the null exception
@RaghavPal
@RaghavPal Жыл бұрын
Hi Sai there could be a few potential causes and solutions: Verify Element Identification: Ensure that you are correctly identifying the search field using a proper locator strategy such as ID, CSS selector, XPath, etc. Double-check that the locator you are using is correct and that it uniquely identifies the search field. Check Element Visibility: Make sure that the search field is visible on the page before attempting to interact with it. If the element is hidden or not yet rendered, you may need to add explicit waits to ensure it is available for interaction. Ensure Element Initialization: Ensure that you have properly initialized the WebElement object representing the search field before trying to interact with it. This involves using methods like driver.findElement() or using a Page Object pattern to initialize the element. Handle Frame or : If the search field is within a frame or , you need to switch the driver's context to that frame before interacting with the search field. Use the driver.switchTo().frame() method to switch to the correct frame. Handle Dynamic Elements: If the search field's attributes or location on the page are dynamically changing, you may need to adjust your locator strategy accordingly. Consider using more robust locator strategies or techniques like XPath axes or CSS selectors to locate the element reliably. Check for Interfering Elements: Ensure that there are no overlapping elements or pop-ups covering the search field. If there are any interfering elements, you may need to close or interact with them before accessing the search field. Check for JavaScript Errors: Check the browser's console for any JavaScript errors that could be interfering with the functionality of the search field. Resolve any errors that are present. I hope one of the solutions should work for you
@HiraSharif-mo5hq
@HiraSharif-mo5hq 11 ай бұрын
Great explanation! Although I've one query regarding getting the project path through the following line of code: String projectPath = System.getProperty("user.dir"); I am getting project path = null. How do I know what argument to give here?
@RaghavPal
@RaghavPal 11 ай бұрын
Hira The reason you're getting `null` when using `System.getProperty("user.dir")` to get the project path within your Cucumber BDD test in Selenium Java could be due to several factors. Here are some possibilities and solutions: *1. Initializing the project path before Cucumber execution:* * `System.getProperty("user.dir")` retrieves the working directory at the time it's called. If you're calling it before your Cucumber test execution begins, the working directory might not be set to the project root yet. *Solution:* * Move the code fetching the project path to the *@Before* hook of your Cucumber test class. This ensures the `System.getProperty("user.dir")` call happens within the designated test execution context. *2. Maven build configuration:* * If you're using Maven to build your project, the working directory might not be set correctly during test execution. *Solution:* * Make sure your Maven build profile sets the working directory to the project root directory during testing. You can achieve this by using the `workingDirectory` property in your test pom.xml. *3. IDE configuration:* * Your IDE might be launching the tests from a different directory than the project root. *Solution:* * Ensure your IDE is launching the Cucumber tests from the correct project root directory. Check the run configuration settings and adjust accordingly. *4. Environment variables:* * In some cases, environment variables can override the default working directory behavior. *Solution:* * Check for any conflicting environment variables that might be setting the working directory to a different location. Here are some alternative ways to get the project path in your Cucumber BDD tests: *Cucumber options:* You can use the `--projectPath` option when running your Cucumber tests from the command line. *Resource files:* Store the project path in a resource file like `project.properties` and access it within your tests. *System properties:* Use `System.getProperties().getProperty("project.root")` to access a custom system property set earlier in your execution process. Remember to adapt the solution to your specific project and environment. If you provide additional details about your project setup and Cucumber configuration, I can offer more specific guidance.
@priyasinha.9
@priyasinha.9 4 ай бұрын
Awesome
@RaghavPal
@RaghavPal 4 ай бұрын
Thanks Priya
@amolkhadbade102
@amolkhadbade102 4 жыл бұрын
Thanks raghav.... Could you please make video on Framework creations in selenium ...
@RaghavPal
@RaghavPal 4 жыл бұрын
Yes Amol, some are available here - automationstepbystep.com/
@Melania8210
@Melania8210 8 ай бұрын
Hi Raghav, I'm starting to learn automated testing, but I'm not very experienced. I followed all the Playwright videos and I thank you because I found them very interesting and very helpful. But if I also wanted to use cucumber in Visual Studio Code with Playwright to have the simplest part of being able to write with Gherkin language, but also the convenience of using the recording with Playwright and helping me with the code, can it be done? And how? Do you have a video where the two things work together and show how to set everything up? Thanks in advance
@RaghavPal
@RaghavPal 8 ай бұрын
Melania Combining Cucumber with Playwright in your automated testing workflow is a great choice. It allows you to write tests in a human-readable format (Gherkin language) while leveraging Playwright's powerful capabilities. Let's get you started: 1. Setting Up Cucumber with Playwright in Visual Studio Code: - Here are the steps to set up Cucumber with Playwright in VS Code: - Step 1: Install Dependencies - Make sure you have Node.js and npm installed. - Create a new directory for your project and navigate to it in the terminal. - Run the following commands to install necessary dependencies: ``` npm init -y npm install playwright cucumber @types/cucumber ``` - Step 2: Create Feature Files - Create a new directory called `features`. - Inside the `features` directory, create `.feature` files that contain your Gherkin scenarios. - Step 3: Write Step Definitions - Create a new directory called `step-definitions`. - Inside the `step-definitions` directory, create TypeScript files that define your step definitions. - Map each Gherkin step to a corresponding Playwright action. - Step 4: Configure Cucumber - Create a `cucumber.config.js` file in your project root. - Configure Cucumber to use Playwright by specifying the path to your step definitions and feature files. - Step 5: Run Your Tests - Write your Gherkin scenarios in the `.feature` files. - Implement the step definitions in TypeScript. - Run your tests using: ``` npx cucumber-js ``` Can refer below videos and tutorials - "Create feature, steps & config | Playwright & Cucumber - Typescript | Part 1" by LetCode with Koushik: - "Automation using Playwright Library with Cucumber JS" by Business Process Incubator: all the best..
@Melania8210
@Melania8210 8 ай бұрын
@@RaghavPal Thank you so much, I will follow your steps. Grazie grazie 😃
@vishnuswaroop6876
@vishnuswaroop6876 4 жыл бұрын
Hi Raghav , You have uploaded bdd framework of cucumber consists of totally 8 videos in playlists- Is it covers all the basics of this framework or some more you going to add lists ? And thanks of your valuable time with all of leavers to gain the knowledge about superb teaching the framework in simple/clear way of steps/videos which you have been taken taught us👌🏻👍🏻
@RaghavPal
@RaghavPal 4 жыл бұрын
Thanks a lot for the message Vishnu, As of now these are the videos that cover all the basics to get anyone started with Cucumber BDD. I will add more videos in some time to this list. All will be available here - automationstepbystep.com/
@karthik143128
@karthik143128 3 жыл бұрын
for this test page u haven't created the Test Runner class....can u tell me why?? is one test Runner class is enough to run all the tests
@RaghavPal
@RaghavPal 3 жыл бұрын
Hi Karthik, yes you can use one test runner class or create multiple as per your needs
@deepika5137
@deepika5137 3 жыл бұрын
Thanks Raghav for your wonderful videos.I really learnt a lot.Are there any upcoming courses on tosca??
@RaghavPal
@RaghavPal 3 жыл бұрын
Hi Deepika, not yet planned, will add on my list
@joydeepghosh4175
@joydeepghosh4175 4 жыл бұрын
Thanks for this BDD tutorial Raghav. This is a very nice session for all levels. Thanks a lot. Do you have any sessions for TestNG(with all the required annotations) tutorials?
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi Joydeep, TestNG with Cucumber is yet to be done, You can check all here - automationstepbystep.com/
@taoswagboy1524
@taoswagboy1524 4 жыл бұрын
at about 16.40 -17.10 driver.manage().timeouts().implicitlyWait(30,TimeUnit.SECONDS); driver.manage().timeouts().pageLoadTimeout(40, TimeUnit.SECONDS); this code when i coding method (implicitlyWait // pageLoadTimeout) have There is a strikethrough on the text. what should i do please you recomment me please
@RaghavPal
@RaghavPal 4 жыл бұрын
That means that class or function is now deprecated and you can check the message as to what exactly you can use instead
@ORiONGods
@ORiONGods 3 жыл бұрын
This was the solution I found online: new WebDriverWait(driver, Duration.ofSeconds(10)); be sure to import as well: import org.openqa.selenium.support.ui.WebDriverWait;
@sweetthirty2
@sweetthirty2 3 жыл бұрын
Hi please let us know when to define in Base class, utilities class and their use in Cucumber framework
@RaghavPal
@RaghavPal 3 жыл бұрын
Hi Samir, I will do a session on this, meanwhile can check some online examples
@rajeshrao5099
@rajeshrao5099 4 жыл бұрын
Hi Raghav could you please let us know how to check weather Cucumber plugin is installed or not in Eclipse?Thanks in advance
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi Rajesh, You can goto Help > Install New Software> In opened dialog click on Already Installed stackoverflow.com/questions/15265264/how-to-find-the-installed-plugins-in-eclipse/15265745
@justsomeguywithouthair5712
@justsomeguywithouthair5712 4 жыл бұрын
REALLY INFORMATIVE. Much appreciated. I just have one hiccup, when I create reports with testrunner , i.e html, i tried it your way with the exact same steps, and I didnt get the htmlReport like yours. Is there an extension I need to type before running the testrunner? like .html?
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi Rohan, that should be in the Cucumber library itself. Not sure if this can be due to diff version. Can try again with the ver I have used and also try some online help
@madhavilatha1996
@madhavilatha1996 3 жыл бұрын
@@RaghavPal yes,Raghav . Problem is version, even I got same problem, if I change the version same like yours, then it creates a folder for html..
@bhavanieswar7351
@bhavanieswar7351 3 жыл бұрын
Thanks Raghav,i love your explatination but when i tried to do same i am unable to generate my html reports, it is depends on any version compatbility?
@RaghavPal
@RaghavPal 3 жыл бұрын
Hi Bhavani, do you see any logs for this
@bhavanieswar7351
@bhavanieswar7351 3 жыл бұрын
@@RaghavPal no
@hassellvinny
@hassellvinny Жыл бұрын
Thanks Raghav, another great video. Interestingly, I noticed that if I omit the line System.setProperty("webdrive.chrome.driver", "src/test/resources/drivers/chromedriver.exe"), the code still works fine. Not sure that the setProperty is needed at all. Even if I delete the chromedriver.exe file from the project, it still managed to run OK. Not sure how that works!
@RaghavPal
@RaghavPal Жыл бұрын
Please check your env variables on your system, Most probably the path of your chromedriver.exe is added in the PATH env variable
@avinashavi5233
@avinashavi5233 4 ай бұрын
Sir i am getting the null pointer exception while giving the xpath for the search bar can u please explain me
@RaghavPal
@RaghavPal 4 ай бұрын
Avinash Sure, let's troubleshoot this step by step. A `NullPointerException` in Selenium with Cucumber usually occurs when an object is not properly initialized. Here’s how you can resolve it: 1. Check WebDriver Initialization: - Ensure that your `WebDriver` instance is properly initialized before using it. For example: ```java WebDriver driver = new ChromeDriver(); ``` 2. Global WebDriver Instance: - Make sure your `WebDriver` instance is accessible throughout your step definitions. You can declare it as a class variable: ```java public class StepDefinitions { private WebDriver driver; @Given("^User is on Homepage$") public void user_is_on_Homepage() { System.setProperty("webdriver.chrome.driver", "path/to/chromedriver"); driver = new ChromeDriver(); driver.get("www.example.com"); } @When("^User searches for \"([^\"]*)\"$") public void user_searches_for(String query) { driver.findElement(By.xpath("//input[@id='search']")).sendKeys(query); } } ``` 3. Ensure Correct XPath: - Verify that the XPath you are using is correct and matches an element on the page. You can test it in the browser’s developer tools. 4. Implicit Waits: - Add implicit waits to ensure elements are available before interacting with them: ```java driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS); ``` 5. Debugging: - Add print statements or use a debugger to check if the `driver` is null at any point: ```java System.out.println(driver); ``` 6. Page Object Model: - If you are using the Page Object Model, ensure that the page objects are properly initialized with the `WebDriver` instance: ```java public class HomePage { WebDriver driver; public HomePage(WebDriver driver) { this.driver = driver; } public void performSearch(String query) { driver.findElement(By.xpath("//input[@id='search']")).sendKeys(query); } } ``` -
@zenialpromotions9982
@zenialpromotions9982 4 жыл бұрын
Hello, May I know what Eclipse version you are using? Run as Cucumber doesn't show up even though it's already installed
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi Zenial, It was eclipse 2020-04. Hope you restarted after installing cucumber plugin
Selenium Cucumber Java BDD Framework 6 - Page Object Model | Step by Step
26:34
Automation Step by Step
Рет қаралды 138 М.
УДИВИЛ ВСЕХ СВОИМ УХОДОМ!😳 #shorts
00:49
HARD_MMA
Рет қаралды 2,6 МЛН
The Ultimate Sausage Prank! Watch Their Reactions 😂🌭 #Unexpected
00:17
La La Life Shorts
Рет қаралды 8 МЛН
Selenium Cucumber Java BDD Framework 1 - Setup | Step by Step | Raghav Pal
43:25
Automation Step by Step
Рет қаралды 762 М.
top 25 mostly asked Cucumber Interview Question and Answer |Cucumber BDD Framework FAQ's
13:25
Selenium Cucumber Java BDD Framework 5 - Parameterization & Data Driven Testing
16:23
NVIDIA’s New AI: Stunning Voice Generator!
6:21
Two Minute Papers
Рет қаралды 43 М.
Selenium Cucumber BDD Framework with Java and TestNG - Login Test
33:42
SDET Adda For QA Automation
Рет қаралды 44 М.
SDET Automation Mock Interview - 8+ YOE (Selenium, Java, API, Testing)
1:37:32
Naveen AutomationLabs
Рет қаралды 279 М.
УДИВИЛ ВСЕХ СВОИМ УХОДОМ!😳 #shorts
00:49
HARD_MMA
Рет қаралды 2,6 МЛН