selenium webdriver登录163邮箱发送邮件的实例
上一篇 /
下一篇 2012-12-21 10:24:11
/ 个人分类:Selenium
package com.test;
*u d `[U\i:o051Testing软件测试网/YyLAoy
import java.util.List;
5O1f6s*{3c:ke3c051Testing软件测试网'Fc%H
k:t2`i
import org.openqa.selenium.By;51Testing软件测试网J MR:E J4p-p(fsq
import org.openqa.selenium.WebDriver;51Testing软件测试网HGj-l'kk]
import org.openqa.selenium.WebElement;51Testing软件测试网%zeK%v&l^Z
import org.openqa.selenium.chrome.ChromeDriver;51Testing软件测试网e
b;sm,M6Rj
import org.openqa.selenium.firefox.FirefoxDriver;51Testing软件测试网5^2E
I\5Y+\Fls
import org.openqa.selenium.ie.InternetExplorerDriver;51Testing软件测试网 S@ M N8Ja1dA
import org.openqa.selenium.interactions.Actions;
P)XW1_.E-}&NC,XM0
y@!\'y5v)? szq0public class test163 {51Testing软件测试网W] m4E!l
public static void main(String[] args) throws InterruptedException {
dHl3s+IeV0 // 启动浏览器,进入163邮箱首页
/\6aA
D`@d0 //WebDriver driver = new InternetExplorerDriver();51Testing软件测试网~"jG]
|FIl
//WebDriver driver = new ChromeDriver();
b
g%t:oM7Q\~5}6d0 WebDriver driver = new FirefoxDriver();51Testing软件测试网P$n.fXbw]i;r
driver.get("http://mail.163.com/");
2e*mD7vX;se ]0