Created
          August 2, 2018 16:37 
        
      - 
      
- 
        Save thetemplateblog/4770774f2329a3214c3a1634e996f0cc to your computer and use it in GitHub Desktop. 
    TestSelenium
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | import java.net.MalformedURLException; | |
| import java.net.URL; | |
| import org.openqa.selenium.Platform; | |
| import org.openqa.selenium.WebDriver; | |
| import org.openqa.selenium.remote.CapabilityType; | |
| import org.openqa.selenium.remote.DesiredCapabilities; | |
| import org.openqa.selenium.remote.RemoteWebDriver; | |
| public class Testclass | |
| { | |
| static WebDriver driver; | |
| static String firefoxVersion = "59.0.2"; | |
| static String firefoxApplicationName = "ip-node-firefox"; | |
| public static void main(String[] args) throws MalformedURLException | |
| { | |
| final DesiredCapabilities capabilities = DesiredCapabilities.firefox(); | |
| capabilities.setCapability(CapabilityType.ACCEPT_SSL_CERTS, true); | |
| capabilities.setBrowserName("firefox"); | |
| capabilities.setVersion(firefoxVersion); | |
| capabilities.setCapability("platform", Platform.LINUX); | |
| capabilities.setCapability("selenium-version", "3.11.0"); | |
| capabilities.setCapability("applicationName", firefoxApplicationName); | |
| driver = new RemoteWebDriver(new URL("http://selenium-selenium-1555640970.us-west-1.elb.amazonaws.com/wd/hub"),capabilities); | |
| driver.get("https://webPageToTest"); | |
| driver.quit(); | |
| } | |
| } | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment