Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.io.File;
- import java.io.IOException;
- import org.openqa.selenium.WebDriver;
- import org.openqa.selenium.chrome.ChromeDriver;
- import org.openqa.selenium.firefox.FirefoxDriver;
- public class Test {
- static WebDriver driver1=new ChromeDriver();
- String user="rutvisoni";
- String pass="12Abcd";
- public void setup() throws IOException
- {
- driver1.manage().window().maximize();
- driver1.get("http://example.com");
- //File inputFile = new ClassPathResource("E:\Selenium Jar\chromedriver.exe").getFile();
- System.setProperty("webdriver.chrome.driver","E:\Selenium Jar\chromedriver.exe");
- }
- public static void main(String args[]) throws IOException
- {
- Test t1=new Test();
- t1.setup();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement