1.IWebDriver driver = new InternetExplorerDriver();运行时报关于protecte model的错误

解决办法就是用如下代码设置IEDriverOpiton,并将IEDriverServer.exe放在IE的同级目录下 C:\Program Files (x86)\Internet Explorer

static void Main(string[] args)
{
InternetExplorerOptions ieO = new InternetExplorerOptions();
//set ingnore protected mode as True
ieO.IntroduceInstabilityByIgnoringProtectedModeSettings = true;
IWebDriver driver = new InternetExplorerDriver(@"C:\Program Files (x86)\Internet Explorer", ieO);
driver.Navigate().GoToUrl("http://www.cnblogs.com");
}

最新文章

  1. 构建ASP.NET MVC4+EF5+EasyUI+Unity2.x注入的后台管理系统(14)-EasyUI缺陷修复与扩展
  2. sublime
  3. Visual C++中的一些编程小技巧
  4. JQuery拖拽排序
  5. KMP算法的Next数组详解
  6. C++学习笔记2:关于开发
  7. lightoj 1020 (博弈)
  8. IOS开发效率之为Xcode添加常用的代码片段
  9. POJ3190 Stall Reservations 【贪婪】
  10. iOS开发 GET、POST请求方法:NSURLSession篇
  11. Cocos2d-x 的“HelloWorld” 深入分析
  12. SolrCloud的介绍
  13. Codeforces 765E. Tree Folding [dfs][树形dp]
  14. linux 3.10 串口注册
  15. foxit pdf强制页面视图所有情况都为'合适宽度'
  16. Centos6.5DRBD加载失败,系统更换yum源(国内163)
  17. [Treap][学习笔记]
  18. Java Spring Boot VS .NetCore (四)数据库操作 Spring Data JPA vs EFCore
  19. 4337: BJOI2015 树的同构
  20. python vtk 通过回调函数监测键盘”Up”键动作,每按一次方向上键,actor变换一种颜色

热门文章

  1. SQL 查询 group by 的使用注意点
  2. JS的组成和变量
  3. Linux下svn回滚
  4. linux驱动启动顺序
  5. 04.Linux-CentOS系统SSH连接问题
  6. python常用函数 J
  7. 实现多线程的三种方法:Thread、Runnable和Callable
  8. Vue:列表渲染 v-for on a <template>
  9. linux下载网页上的文件夹以及删除文件(stream)
  10. php strcmp()函数 语法