Skip to content

Instantly share code, notes, and snippets.

@JAffleck
JAffleck / Selenium2Example1Test.java
Created July 26, 2017 21:53 — forked from neino3/Selenium2Example1Test.java
how to take screen shot by using Selenium2 Grid
import java.io.File;
import java.io.IOException;
import java.net.URL;
import org.apache.commons.io.FileUtils;
import org.junit.Assert;
import org.junit.Test;
import org.openqa.selenium.OutputType;
import org.openqa.selenium.Platform;
@JAffleck
JAffleck / mvncolor.sh
Created June 3, 2016 18:45 — forked from katta/mvncolor.sh
Script to add colors to maven output
#!/usr/bin/env bash
# Formatting constants
export BOLD=`tput bold`
export UNDERLINE_ON=`tput smul`
export UNDERLINE_OFF=`tput rmul`
export TEXT_BLACK=`tput setaf 0`
export TEXT_RED=`tput setaf 1`
export TEXT_GREEN=`tput setaf 2`
export TEXT_YELLOW=`tput setaf 3`