-
Notifications
You must be signed in to change notification settings - Fork 25
Writing the first test script
Arulprasath edited this page Jun 24, 2017
·
4 revisions
Now that you have installed all the basics stuff to start automating, let's write a simple program to launch a browser and open a website.
Follow these instructions if you don't have any idea on Eclipse or Java. If you have experience in using Eclipse, go ahead with the code.
Steps (Please follow these if you are completely new to programming and Eclipse):
- Open the installed Eclipse and click on File->New->Java Project
- Give a suitable project name. (seleniumBasics) and click on Finish.
- There will be an src folder. Right-click on that -> New -> Package ->Give a suitable package name (com.selenium.learning)
- Right click on that package -> new Class -> Give a name to the class (OpenGoogle)
- Copy the code from code segment and paste in the main method of your OpenGoogle class.
or
Copy the code from this link https://github.com/Arulprasath36/TestAutomationExamples/tree/master/automationWithSelenium/src/seleniumBasics