博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
配置打开IE浏览器
阅读量:4502 次
发布时间:2019-06-08

本文共 737 字,大约阅读时间需要 2 分钟。

public class Testcase {    @Test    public void test() throws InterruptedException {        System.setProperty("webdriver.ie.driver", "C:\\IEDriverServer.exe");        //为 Internet Explorer 设置安全性功能,        DesiredCapabilities ieCapabilities = DesiredCapabilities.internetExplorer();        ieCapabilities.setCapability(InternetExplorerDriver.                INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS,true );            WebDriver driver;        String url;            url = "http://www.baidu.com";            driver = new InternetExplorerDriver(ieCapabilities);                driver.get(url);            System.out.print(driver.getTitle());            driver.quit();        }    }

 

 

转载于:https://www.cnblogs.com/malone/p/6405804.html

你可能感兴趣的文章
Python微信
查看>>
Oracle 存储过程起步
查看>>
python变量和作用域
查看>>
将AJAX返回值纵向排序赋值给Table标签
查看>>
MacOS下brew的安装和使用 lua环境搭建 lua http请求
查看>>
Java自学成长路线(转载)
查看>>
UITableView的section header view悬停的方法
查看>>
Codeforces Round #568 (div. 2)
查看>>
asp.net(C#)链接Oracle连接字符串
查看>>
【深度学习笔记】Anaconda及开发环境搭建
查看>>
CentOS虚拟机不能联网状况下yum方式从本地安装软件包(转载的)
查看>>
INF文件中的HKR
查看>>
007-Python-列表,元祖,字典,字符串,装饰器,可变长度参数
查看>>
企业网络信息安全建设的方法论
查看>>
linux初学者-普通磁盘分区篇
查看>>
MySQL order null 0 - 把null和0(零)排在最后
查看>>
jsoup
查看>>
android SD卡浏览器
查看>>
ComboBox 中 DisplayMember 和 ValueMember 都是具体干什么的?
查看>>
[mobile开发碎碎念]手机页面上显示PDF文件
查看>>