1.问题描述:浏览器获取当期窗口值获取为空。

2.Set<String> h = driver.getWindowHandles();

3.解决方法:用Debug调试。发现diver(SeachingPage的值为空)

4.发现代码其中一个私有方法,实例化对象为空值,删除该行代码即可

最新文章

  1. [8.1] Triple Step
  2. 接口分离原则(Interface Segregation Principle)
  3. eclipse failed to load the jni jvm.dll
  4. Tomcat 使用Redis存储Session
  5. 【USACO1.1】Broken Necklace
  6. C++中argc和argv
  7. DTD 知识归纳总结
  8. 20141113--SQL 事务
  9. 购物篮模型&amp;Apriori算法
  10. java之反射
  11. UVALive 3716 DNA Regions
  12. hibernate @OneToMany等注解设置查询过滤条件
  13. MySQL update 语句与标准SQL不同的地方
  14. python seaborn 画图
  15. 关于bat中使用rar压缩命令
  16. @RequiresPermissions ,@RequiresUser , @RequiresGuest ,@RequiresRoles 解释
  17. 富文本编辑器-UEditor
  18. rsync命令的基本使用
  19. C#子类如何调用父类
  20. SSM(SpringMVC+Spring+Mybatis)框架程序on IDEA

热门文章

  1. 截图工具(window 10 和Mac OSX)
  2. 教你一招:解决Windows 开机弹出AotuIt ERROR 错误
  3. Java知多少(77)日期和时间类
  4. Spark学习笔记——构建基于Spark的推荐引擎
  5. 理解Generic.xaml和Themes
  6. nodejs即时通讯模块+SocketIO4Net的使用小结
  7. Fidder
  8. iOS - WKWebView加载不受信任的https (因用到IP地址加端口号去请求数据)
  9. Python实现Linux命令xxd -i功能
  10. Java Debugging with Eclipse - Tutorial