Posts Tagged: "screenshots"

automation testing using phantom js and selenium webdriver with screenshot

– Download latest version of selenium, I am using 2.45.0 – Download latest version of PhantomJs, I am using 2.0- windows, extract to a safe path. Use below code to automate with phantomjs (Headless browser) import java.io.File; import java.io.IOException; import org.apache.commons.io.FileUtils; import org.junit.Test; import org.openqa.selenium.OutputType; import org.openqa.selenium.phantomjs.PhantomJSDriver; public class Phantom { @Test public void phantomTest() […]