Advertisement
Guest User

Untitled

a guest
Mar 15th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. public class InstallSpecific {
  2. WebDriver driver = new ChromeDriver();
  3. String env_Name;
  4. String version;
  5.  
  6.  
  7. public static void main(String[] args) throws IOException, InterruptedException {
  8.  
  9. InstallSpecific poker = new InstallSpecific();
  10. poker.env_Name = args[0];
  11. poker.version = args[1].substring(2);
  12.  
  13.  
  14. if (poker.version.toLowerCase().contains("BE")) {
  15. poker.InstallBe();
  16. }
  17.  
  18. }
  19.  
  20.  
  21. public void Ename(String env_Name) {
  22. this.env_Name = env_Name;
  23. }
  24.  
  25. public void version(String version) {
  26. this.version = version;
  27. }
  28.  
  29.  
  30. public void InstallBe() throws IOException, InterruptedException {
  31. System.setProperty("webdriver.chrome.driver ", "chromedriver.exe");
  32. driver.get("http://bamboo.poker.ptec/allPlans.action");
  33. String username = Files.readAllLines(Paths.get("up.txt")).get(0);
  34. String pass = Files.readAllLines(Paths.get("up.txt")).get(1);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement