Ieda下Selenium自动化适配的driver版本

有效的Chrome Driver(6.7M)
链接:https://pan.baidu.com/s/1ZIy1d7RQUDoSpZt1gTv2ZQ 提取码:r19c

将driver路径填写正确

import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;

public class Login {
    public  WebDriverdriver;
    public  void InitDriver(){
    System.setProperty("webdriver.chrome.driver", "F:\\JavaScript\\chromedriver.exe");
        driver =new ChromeDriver();
        driver.get("https://www.csdn.net/");
        driver.manage().window().maximize();
        try {
              Thread.sleep(1000);
        }catch (InterruptedException e) {
              e.printStackTrace();
        }
      driver.findElement(By.linkText("登录")).click();
  }

public static void main(String[] args){
      Login id =new Login();
       id.InitDriver();
    }
}

运行driver后,启动页面:

image

你可能感兴趣的:(Ieda下Selenium自动化适配的driver版本)