Example usage for org.openqa.selenium Platform WINDOWS

List of usage examples for org.openqa.selenium Platform WINDOWS

Introduction

In this page you can find the example usage for org.openqa.selenium Platform WINDOWS.

Prototype

Platform WINDOWS

To view the source code for org.openqa.selenium Platform WINDOWS.

Click Source Link

Document

Never returned, but can be used to request a browser running on any version of Windows.

Usage

From source file:RunIpadAcceptanceTests.java

License:Apache License

@BeforeClass
public static void setupSquashWebsiteUrl() {
    Platform current = Platform.getCurrent();
    Assert.assertTrue("Safari can be used only on MAC and Windows platforms",
            Platform.MAC.is(current) || Platform.WINDOWS.is(current));

    Properties p = new Properties(System.getProperties());
    p.setProperty("SquashWebsiteBaseUrl",
            "http://squashwebsite.s3-website-eu-west-1.amazonaws.com/?selectedDate=2016-01-16.html");
    // This will be read before each scenario to set up the webdriver
    p.setProperty("WebDriverType", "Ipad");
    p.setProperty("WebDriverJavascriptEnabled", "true");
    System.setProperties(p);/*ww w .  jav  a2  s  .co  m*/
}

From source file:WebTestSelenium5.java

public void setUp() throws Exception {
    DesiredCapabilities capabilities = DesiredCapabilities.firefox();
    capabilities.setCapability("version", "11");
    capabilities.setCapability("platform", Platform.WINDOWS);
    capabilities.setCapability("name", "Testing Selenium 2");
    try {//from   w  w  w .ja  va2 s .  c  o  m
        this.driver = new RemoteWebDriver(new URL(URL), capabilities);
        driver.manage().timeouts().implicitlyWait(60, TimeUnit.SECONDS);
    } catch (Exception ex) {
        System.out.println("Driver problem");
    }
    this.driver.get("http://web.mit.edu/");
}

From source file:WebTestSelenium10.java

public void setUp() throws Exception {
    DesiredCapabilities capabilities = DesiredCapabilities.firefox();
    capabilities.setCapability("version", "11");
    capabilities.setCapability("platform", Platform.WINDOWS);
    capabilities.setCapability("name", "Testing Selenium 2");
    try {//from w  w w  .  j a  v a 2 s  .c  o m
        this.driver = new RemoteWebDriver(new URL(URL), capabilities);
        driver.manage().timeouts().implicitlyWait(60, TimeUnit.SECONDS);
    } catch (Exception ex) {
        System.out.println("Driver problem");
    }
    this.driver.get("http://www.minnesota.edu/");
}

From source file:WebTestSelenium11.java

public void setUp() throws Exception {
    DesiredCapabilities capabilities = DesiredCapabilities.firefox();
    capabilities.setCapability("version", "11");
    capabilities.setCapability("platform", Platform.WINDOWS);
    capabilities.setCapability("name", "Testing Selenium 2");
    try {/*from   w w  w. j av a  2s  . c  om*/
        this.driver = new RemoteWebDriver(new URL(URL), capabilities);
        driver.manage().timeouts().implicitlyWait(60, TimeUnit.SECONDS);
    } catch (Exception ex) {
        System.out.println("Driver problem");
    }
    this.driver.get("http://www.columbia.edu/");
}

From source file:ExperimentRunner.java

License:Apache License

private static boolean isSupportedPlatform() {
    Platform current = Platform.getCurrent();
    return Platform.MAC.is(current) || Platform.WINDOWS.is(current);
}

From source file:RunFirefoxAcceptanceTests.java

License:Apache License

@BeforeClass
public static void setupSquashWebsiteUrl() {
    Platform current = Platform.getCurrent();
    Assert.assertTrue("Safari can be used only on MAC and Windows platforms",
            Platform.MAC.is(current) || Platform.WINDOWS.is(current));

    Properties p = new Properties(System.getProperties());
    p.setProperty("SquashWebsiteBaseUrl",
            "http://squashwebsite.s3-website-eu-west-1.amazonaws.com/?selectedDate=2016-01-11.html");
    // This will be read before each scenario to set up the webdriver
    p.setProperty("WebDriverType", "Firefox");
    p.setProperty("webdriver.firefox.bin", "/Applications/Firefox.app/Contents/MacOS/firefox-bin");
    p.setProperty("WebDriverJavascriptEnabled", "true");
    System.setProperties(p);//from   w  w w  .ja  va2 s  .  co  m
}

From source file:WebTestSelenium1.java

public void setUp() throws Exception {
    DesiredCapabilities capabilities = DesiredCapabilities.firefox();
    capabilities.setCapability("version", "11");
    capabilities.setCapability("platform", Platform.WINDOWS);
    capabilities.setCapability("name", "Testing Selenium 2");
    try {// www.ja va 2 s.c  o m
        this.driver = new RemoteWebDriver(new URL(URL), capabilities);
        driver.manage().timeouts().implicitlyWait(60, TimeUnit.SECONDS);
    } catch (Exception ex) {
        System.out.println("Driver problem");
    }
    this.driver.get("http://www.newhaven.edu/");
}

From source file:WebTestSelenium6.java

public void setUp() throws Exception {
    DesiredCapabilities capabilities = DesiredCapabilities.firefox();
    capabilities.setCapability("version", "11");
    capabilities.setCapability("platform", Platform.WINDOWS);
    capabilities.setCapability("name", "Testing Selenium 2");
    try {/*from w w w. j  a  v a 2s .  co m*/
        this.driver = new RemoteWebDriver(new URL(URL), capabilities);
        driver.manage().timeouts().implicitlyWait(60, TimeUnit.SECONDS);
    } catch (Exception ex) {
        System.out.println("Driver problem");
    }
    this.driver.get("http://www.cornell.edu/");
}

From source file:WebTestSelenium2.java

public void setUp() throws Exception {
    DesiredCapabilities capabilities = DesiredCapabilities.firefox();
    capabilities.setCapability("version", "11");
    capabilities.setCapability("platform", Platform.WINDOWS);
    capabilities.setCapability("name", "Testing Selenium 2");
    try {//from  www .  j a va2 s.c  om
        this.driver = new RemoteWebDriver(new URL(URL), capabilities);
        driver.manage().timeouts().implicitlyWait(60, TimeUnit.SECONDS);
    } catch (Exception ex) {
        System.out.println("Driver problem");
    }
    this.driver.get("http://www.caltech.edu/");
}

From source file:WebTestSelenium7.java

public void setUp() throws Exception {
    DesiredCapabilities capabilities = DesiredCapabilities.firefox();
    capabilities.setCapability("version", "11");
    capabilities.setCapability("platform", Platform.WINDOWS);
    capabilities.setCapability("name", "Testing Selenium 2");
    try {//from  w w  w.  j  a  va2 s . c o m
        this.driver = new RemoteWebDriver(new URL(URL), capabilities);
        driver.manage().timeouts().implicitlyWait(60, TimeUnit.SECONDS);
    } catch (Exception ex) {
        System.out.println("Driver problem");
    }
    this.driver.get("http://www.cam.ac.uk/");
}