Then apply and ok everything
Now open the CMD with … Read more
Gradle will build a test result automatically when you run script by gradle clean test
command.
You can find it this location:
PROJECT_ROOT_FOLDER>build>reports>tests>test>index.html
Open the index.html file and you will see the test result.
But this report looks like ugly. … Read more
Open the project. If you forgot how to open project, see previous post.
Add a new class named Utility under the Utils folder.
Now add following code into the java class:
package Utils;
import org.apache.commons.io.FileUtils;
import org.openqa.selenium.OutputType;
import
… Read more TestNG is a testing framework like JUnit that provides some new functionalities. Now we will modify our previous project and integrate it with TestNG.
Run IntelIJ. Go to File > Open
Go to project location and select build.gradle
Now click … Read more
Page Object Model, also known as POM is a design pattern in Selenium that creates an object repository for storing all web elements. It is effective to optimize code and improves test case … Read more
To work with selenium, we need to know the Selenium WebDriver methods..
Mainly these terms need to know:
Now go to src>test>java
Right click on java folder then go to new and click on Java Class.
Give a name of Java class
Now download geckodriver for firefox and chromedriver for chrome browser.
Extract the file and keep them … Read more
Prerequisite:
Let’s check if java is installed in our pc.
Go to cmd and hit following command:
java -version
If Java is installed, then you will see … Read more