Selenium Framework for Beginners 6 | How to create FIRST SELENIUM TEST in Java

preview_player
Показать описание
Today we will learn - How to create first Selenium test
1.How to create a test in Selenium
2.Run and Validate
helpful tips

Step 1 : Create a Java Class

Step 2 : Add code to open browser

Step 3 : Add code for browser actions

Step 4 : Close Browser

Step 5 : Run and Validate

helpful tips

Check your selected locator in different browsers

Can take help of tools for generating xpath and cssSelectors

Whenever you face any error:
Check the logs
Copy the error on Google and search

#SeleniumJavaFramework #SeleniumTutorials #SeleniumTraining #SeleniumFramework #SeleniumJavaTutorial #SeleniumBeginnerTraining

PLAYLISTS

SELENIUM BEGINNERS

SELENIUM JAVA FRAMEWORK BEGINNERS

JAVA

JENKINS

JMETER

GIT & GITHUB

DOCKER

ROBOT FRAMEWORK

KATALON STUDIO

WEB SERVICES (API)

Like on FACEBOOK :

Follow on TWITTER:

Subscribe on YOUTUBE :

Like, Subscribe & Share
You can support my mission for education by sharing this knowledge and helping as many people as you can

Never Stop Learning
Raghav
Рекомендации по теме
Комментарии
Автор

If you cannot press the return button on btnK, try to press it inside the search bar itself. It worked for me

prasanthganesan
Автор

I didn't get issue of overlapping of google search keyword, It works smoothly. Btw These tutorial are very easy to understand . Good work Sir

Arvindkumar-zmgc
Автор

Excellent tutorial. I am new to Selenium and this video given an open door way to learn this tool from the very basic, thanks a lot

sijoalexv
Автор

Raghav sir, happy new year to you. I learnt a lot from your videos.Please keep producing such quality videos.
Your explanation about the concept is awesome.Thanks a lot for helping everyone.

anandyashwanth
Автор

Thanks for all these stuff sir..Can you please answer the following questions.

1) Who will write Test Scenarios and Test cases for Automation Testing in a Real Time Project?

2) When to perform Automation Testing in a Real Time Project?

3) If I have 50 test cases in the attached document  How do I select test cases for Automation?

4) From that document how do I select test cases for the Regression?

RajKumar-ijrr
Автор

Great video!! There simple and I am learning a lot about Selenium.

MIKEYSREVIEWS
Автор

Hello! I try to use, but it doesn't work on my side. So I use as I do in general when search in google. And it works properly now.
Thank you for your videos they are very helpful!

BogemiaRegent
Автор

God Bless you Raghav Sir, these tutorials are so easy to understand and so interesting...Thanku Sm for teaching it in easiest way💜

ankitarane
Автор

Guy, you're an angel sent by God! ..

staulik
Автор

hi raghava i have a doubt in PAGE OBJECT METHOD mavan automation in google search may be 7 or 8 class video what are the dependencies you use and where it import in your program plz upload that dependencies class video

nareshchoppara
Автор

Thankyou very much Raghav for this detailed session. I have one doubt in the same code that my Keys.RETURN is not working and runtime error is throwing as ElementNotInteractable. My code is running till I am giving input in textbox but it is not clicking on Enter through Keys.Can you please help, I am not able to proceed.

namratasingh
Автор

Correct me if I'm wrong, but this is a Selenium script - not a test?
We're writing code to perform a search but we're not actually "testing" anything yet as there's no test/assertion?
I've watched nearly all the videos in the playlist and can't see this.

Am I missing something?
Great video playlist Raghav, I've learnt a lot from this.

FazSaber
Автор

just waiting for your video and will be the first viewer...awesome sir

amarputtana
Автор

THANK YOU VERY MUCH FOR TEACHING US LIKE THIS

mevanakalanka
Автор

For all who stuck there with name = "btnK", try xpath("absolute path"), that works in my case.

rotrose
Автор

Hi, Raghav! I'm following your videos. I really like it. In this video I don't understand, but why need to use "projectpath" for set chromedriver. If you can directly write the location of the webdriver inside the project structure?

marinagulevich
Автор

Great video as usual Raghav.
But as someone coming from a JavaScript background, it seems EVERY Java/C# Selenium tutorial talks about Class, Packages, Main, Static, Void etc. but they never explain WHAT these are and why we use them?
I haven't found a single Selenium framework that does this...very frustrating.

FazSaber
Автор

Hi Raghav,
Say if I don't take the help of "ChroPath", how would I write the dynamic xPath?
Correct me if I got it wrong.

sufalhaldar
Автор

Hi Raghav,
I am following this tutorial basic concepts i understood.

Suppose if i am creating my own project automation (Last month i messaged here that i have to create one project automation in short time) .

So have to create a framework then automate some 10-15 cases to my team then i will complete it ..I am not able to understood how or Where to store Xpaths? I saw many other videos(Rahul arora) it looked me so lengthy to understood project configuration he done honestly i felt not comfortable..


Still, Step by step i am not clear how to save objects /xpath how to sue them in main class..and all..currently i am following this tutorial so in single Main class i am adding everything.


in my application, I have one login page then if login gets successfull then there is insured personal information page where i have to fill data (Textboxes, Dropdown, search) then submit so can i write all code in single page?i have seen people write scripts in different way in a framwork.

When we automate a project then i am unable to understood how can i proceed? sorry for long text but my single question was how to implement all concepts in a project ? Hope you will understand my concern.

Thank you.

KavitaRawatWorld
Автор

We should add some implicit wait to the script; so we don't have to add Keys.RETURN

aliara