Advertisement
Guest User

Untitled

a guest
Nov 21st, 2016
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. import java.io.File;
  2. import java.io.IOException;
  3.  
  4. import org.openqa.selenium.WebDriver;
  5. import org.openqa.selenium.chrome.ChromeDriver;
  6. import org.openqa.selenium.firefox.FirefoxDriver;
  7.  
  8.  
  9. public class Test {
  10.  
  11.  
  12. static WebDriver driver1=new ChromeDriver();
  13. String user="rutvisoni";
  14. String pass="12Abcd";
  15.  
  16. public void setup() throws IOException
  17. {
  18. driver1.manage().window().maximize();
  19. driver1.get("http://example.com");
  20.  
  21. //File inputFile = new ClassPathResource("E:\Selenium Jar\chromedriver.exe").getFile();
  22. System.setProperty("webdriver.chrome.driver","E:\Selenium Jar\chromedriver.exe");
  23.  
  24. }
  25.  
  26.  
  27. public static void main(String args[]) throws IOException
  28. {
  29. Test t1=new Test();
  30. t1.setup();
  31.  
  32. }
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement