public class LinkChecker extends Object
Modifier and Type | Field and Description |
---|---|
static org.openqa.selenium.WebDriver |
driver
The driver.
|
Constructor and Description |
---|
LinkChecker(org.openqa.selenium.WebDriver driver) |
Modifier and Type | Method and Description |
---|---|
static void |
brokenImageLinkChecker(String pageName,
String reportSampleFileTemplatePath,
String reportSampleFileTemplateName,
String siteDomainForAbsoluteLink)
Broken Image link checker.
|
static void |
brokenLinkChecker(String pageName,
String reportSampleFileTemplatePath,
String reportSampleFileTemplateName,
String siteDomainForAbsoluteLink)
Broken link checker.
|
public static void brokenLinkChecker(String pageName, String reportSampleFileTemplatePath, String reportSampleFileTemplateName, String siteDomainForAbsoluteLink) throws jxl.write.WriteException, Exception
pageName
- the page title for reporting purposereportSampleFileTemplatePath
- the report sample file template path. Ex:"D:\\Softwares\\workspacePersonal\\BTAC_SeleniumAppiumLibrary\\linkCheckerReports\\"reportSampleFileTemplateName
- the report sample file template name. Ex:"linkCheckerStatusTemplate.xls"siteDomainForAbsoluteLink
- the site base domain for absolute link. Ex:"http://www.abc.com/"jxl.write.WriteException
- the write exceptionException
- the exceptionpublic static void brokenImageLinkChecker(String pageName, String reportSampleFileTemplatePath, String reportSampleFileTemplateName, String siteDomainForAbsoluteLink) throws jxl.write.WriteException, Exception
pageName
- the page title for reporting purposereportSampleFileTemplatePath
- the report sample file template path. Ex:"D:\\Softwares\\workspacePersonal\\BTAC_SeleniumAppiumLibrary\\linkCheckerReports\\"reportSampleFileTemplateName
- the report sample file template name. Ex:"linkCheckerStatusTemplate.xls"siteDomainForAbsoluteLink
- the site base domain for absolute link. Ex:"http://www.abc.com/"jxl.write.WriteException
- the write exceptionException
- the exception