首页 > Web开发 > 详细

webdriver hangs when get or click

时间:2016-03-17 00:18:48      阅读:199      评论:0      收藏:0      [点我收藏+]

Same times the webdriver hangs when get url or click some link,  webdriver executing (get or click) but no done.

1. For firefox

FirefoxProfile fp = new FirefoxProfile();
fp.setPreference("webdriver.load.strategy", "unstable");
driver = new FirefoxDriver(fp);

2. For IE

 

profile is not support for IE, we can set attribute enablePersistentHover as false.

            DesiredCapabilities iecaps = DesiredCapabilities.internetExplorer();

            iecaps.setCapability(InternetExplorerDriver.ENABLE_PERSISTENT_HOVERING, false);

 

webdriver hangs when get or click

原文:http://www.cnblogs.com/lgm1999/p/5285594.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!