This is repository for Test basic Webscrapper login function
Eclipse IDE
Selenium Server version 3.11.0
Apache maven plugin eclipse embedded
ChromeDriver Version 65.0.3325.181 (Official Build)
TestNG Version 6.9.4
Clone or download source from project code. Clone repository to eclipse git repositories. Import project from cloned git repository. It is an maven project.
Install TestNG plugin to eclpise if it is not installed.
Open or navigate to TestLogin.java file and run as TestNG.
Run As TestNG > TestLogin.java
Navigate to Base folder when project source is extracted.
mvn clean install
If execution is done as
TestNGthen reportindex.htmlwill be found intest-outputfolder.
If execution is done as
mvnthen reportindex.htmlwill be found in/target/surefire-reportsfolder.
Then, uncomment below section from TestLogin.java in getWebDriver() method.
/*
System.setProperty("webdriver.chrome.driver", "src/main/resources/drivers/chromedriver.exe");
driver = new ChromeDriver();
*/
And comment section for HtmlUnitDriver.
driver = new HtmlUnitDriver(true);