Extending class in JavaScript
Following code snippet demonstrates class extension in JavaScript —————————————————————– ES2015 Classes In the ES2015 specification, you can use the class syntax which is just sugar over the prototype system....
Following code snippet demonstrates class extension in JavaScript —————————————————————– ES2015 Classes In the ES2015 specification, you can use the class syntax which is just sugar over the prototype system....
JIRA_Testplan This test plan demonstrates following capabilities, that can be executed against a valid JIRA Instance: 01. Basic Authentication with JIRA 02. Get all projects in JIRA Instance 03....
https://github.com/PerfectoCode/Community-Samples https://github.com/PerfectoMobileSA Java Selenium course (@ Perfecto GitRepository): https://github.com/PerfectoMobileSA/JavaSeleniumCourseAssignments/blob/master/src/main/java/Assignment01_Wikipedia.java
Start Jenkins from command line using java -jar C:\Program Files (x86)\Jenkins\jenkins.war
public static Map< String, Map<String, String>> getData(String fileName) { Map < String, Map< String, String>> fileData = new HashMap<>(); int rowCount = 0; String csvRowData = null; try (BufferedReader...
javax.mail mail 1.4 javax.activation activation 1.1.1 Once you have pom updated for above dependencies, you can use following code to send email from your java program
In order to re-run failed test cases, TestNG provides “IRetryAnalyzer” interface, which needs to be implemented for “retry()” Following code snippet demonstrates how to implement this interface and re-run...
Step 1: Create a class implementing “WebDriverEventListener” e.g. import java.sql.Date; import java.sql.Timestamp; import java.time.LocalDate; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.openqa.selenium.support.events.WebDriverEventListener; public class EventHandler implements WebDriverEventListener { //private...
Following code can be used to highlight an element using javascript import org.openqa.selenium.By; import org.openqa.selenium.JavascriptExecutor; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.openqa.selenium.firefox.FirefoxDriver; import org.testng.annotations.Test; public class HighlighterClass { @Test public...
Step 1: Create a log4j.properties file (eg.) # Set root category priority to INFO and its only appender to CONSOLE. log4j.rootCategory=INFO, CONSOLE #log4j.rootCategory=INFO, CONSOLE, LOGFILE # Set the enterprise...