Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class InstallSpecific {
- WebDriver driver = new ChromeDriver();
- String env_Name;
- String version;
- public static void main(String[] args) throws IOException, InterruptedException {
- InstallSpecific poker = new InstallSpecific();
- poker.env_Name = args[0];
- poker.version = args[1].substring(2);
- if (poker.version.toLowerCase().contains("BE")) {
- poker.InstallBe();
- }
- }
- public void Ename(String env_Name) {
- this.env_Name = env_Name;
- }
- public void version(String version) {
- this.version = version;
- }
- public void InstallBe() throws IOException, InterruptedException {
- System.setProperty("webdriver.chrome.driver ", "chromedriver.exe");
- driver.get("http://bamboo.poker.ptec/allPlans.action");
- String username = Files.readAllLines(Paths.get("up.txt")).get(0);
- String pass = Files.readAllLines(Paths.get("up.txt")).get(1);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement