selenium webdriver登录163邮箱发送邮件的实例
上一篇 /
下一篇 2012-12-21 10:24:11
/ 个人分类:Selenium
package com.test;51Testing软件测试网!d u S?n-z`
51Testing软件测试网UB6G5J|W
import java.util.List;
+E,kw%\8m0
s/hS"R5|/r0import org.openqa.selenium.By;51Testing软件测试网&H.c7A_ Y
import org.openqa.selenium.WebDriver;51Testing软件测试网/[#P} n \\uyO
import org.openqa.selenium.WebElement;
2w8b`
K ~BH0import org.openqa.selenium.chrome.ChromeDriver;
YX`PN2t#IN0import org.openqa.selenium.firefox.FirefoxDriver;51Testing软件测试网nR;JU4?-b(V`(b
import org.openqa.selenium.ie.InternetExplorerDriver;
X4xH0f-Y!td'D0import org.openqa.selenium.interactions.Actions;
X1LgN&y&S2gyl s051Testing软件测试网;@*dO jD M
public class test163 {
2{/lmH$?SG)N0 public static void main(String[] args) throws InterruptedException {51Testing软件测试网A&wy{2?2xQ~
// 启动浏览器,进入163邮箱首页51Testing软件测试网;Z3D
G5z!W
//WebDriver driver = new InternetExplorerDriver();51Testing软件测试网u&B{)VFv d%G[8i;L
//WebDriver driver = new ChromeDriver();51Testing软件测试网2y/VM AI5U!n
WebDriver driver = new FirefoxDriver();51Testing软件测试网qlD
L qD}#v
driver.get("http://mail.163.com/");