C:Sample> set pathpath C:Program FilesJavajdkbin Replace the above JDK version with your installed java version. Run the Java Program in CMD Below are the required steps in cmd : Follow the below steps: C:UsersAdmin> cd C:> cd Sample Now the current directory is Sample. To use Chrome, it is mandatory to have the driver executable. You can also open it by typing cmd in run window. As the first test, we will write a script to open ‘’ on the Chrome browser. Import java.io.FileInputStream import java.io.FileNotFoundException import java.io.IOException import java.io.InputStream import java.io.InputStreamReader import import import import. import .2.AuthorizationCodeInstalledApp import .2.LocalServerReceiver import. import. import. import. import .json.JsonFactory import. import. import .drive.Drive import .drive.DriveScopes import. import .drive.model. Step 5 Creating and Running the first test using Selenium and Java.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |