码迷,mamicode.com
首页 > Web开发 > 详细

webdriver hangs when get or click

时间:2016-03-17 00:21:41      阅读:189      评论: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
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!