package main;
import java.util.List;
import org.openqa.selenium.By;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.firefox.FirefoxDriver;
public class dd {
public static void main(String[] args) {
//System.setProperty("webdriver.chrome.driver", "D:\\tools\\selenium_driver\\chromedriver (1).exe");
FirefoxDriver driver=new FirefoxDriver();
driver.get("https://www.imooc.com/user/newlogin/from_url/");
driver.findElement(By.tagName("input")).sendKeys("xxx");//标签名字
driver.findElement(By.name("password")).sendKeys("xxx");//名字
import java.util.List;
import org.openqa.selenium.By;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.firefox.FirefoxDriver;
public class dd {
public static void main(String[] args) {
//System.setProperty("webdriver.chrome.driver", "D:\\tools\\selenium_driver\\chromedriver (1).exe");
FirefoxDriver driver=new FirefoxDriver();
driver.get("https://www.imooc.com/user/newlogin/from_url/");
driver.findElement(By.tagName("input")).sendKeys("xxx");//标签名字
driver.findElement(By.name("password")).sendKeys("xxx");//名字