大橙子网站建设,新征程启航
为企业提供网站建设、域名注册、服务器等服务
org.seleniumhq.selenium
selenium-java
3.141.59
org.seleniumhq.selenium
selenium-server
3.141.59
org.testng
testng
7.0.0-beta1
compile
ChromeDriver driver = new ChromeDriver();
driver.navigate().to("http://www.baidu.com");
Thread.sleep(6000);
driver.close();
driver.findElement(By.id("kw")).sendKeys("百度");
from selenium import webdriver
driver = webdriver.Firefox(executable_path='D:\pythonspacen\pyt\onea\drive\geckodriver.exe')
driver.maximize_window()
driver.get("http://www.baidu.com")
driver.find_element_by_id("kw").send_keys("美丽")
driver.find_element_by_xpath('//*[@id="su"]').click()