how to install Install oracle java 7 using apt-get on linux
sudo add-apt-repository ppa:webupd8team/java sudo apt-get update sudo apt-get install oracle-java7-installer
sudo add-apt-repository ppa:webupd8team/java sudo apt-get update sudo apt-get install oracle-java7-installer
import java.io.IOException; import org.junit.Before; import org.junit.Test; import org.openqa.selenium.Platform; import org.openqa.selenium.WebDriver; import org.openqa.selenium.safari.SafariDriver; public class SafariTest { private WebDriver driver = null; @Test public void myTest() throws IOException, InterruptedException { driver.get("http://www.google.com"); } // Get the platform details private static boolean isSupportedPlatform() { Platform current = Platform.getCurrent(); return Platform.MAC.is(current) || Platform.WINDOWS.is(current); } @Before public void createDriver() { […]
Pre Requisites – PHP 5.3, PHP UNIT What is phantomjs This is used for headless webtesting Run functional tests with frameworks such as Jasmine, QUnit, Mocha, Capybara, WebDriver, and many others for screen capture Programmatically capture web contents, including SVG and Canvas. Create web site screenshots with thumbnail preview for Page automation Access and manipulate webpages […]
remove mvn from build configuration command, just give “clean verify” or clean install
Hope you guys have basic knowledge in selenium? yep..that’s enough for this. I am using linux as testing environment.. the procedures will be same in windows or other platforms, but the installation process will be different for each platforms. Prerequisite 1. Install python using – most of the cases this is not needed, should be […]
public String checkElement(WebDriver driver,By by ){ if (driver.findElements(by).size() < 1){ System.out.println("Test is Passed"); return “Pass”; }else { System.out.println(“Test is failed”); return “Fail”; } } System.out.println(checkElement(driver, By.xpath("//button[@id='gbqfba']")));;