webdriver hangs when get or click

Posted 悟空救我呀

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了webdriver hangs when get or click相关的知识,希望对你有一定的参考价值。

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的主要内容,如果未能解决你的问题,请参考以下文章

TC Hangs when using quick search extended on win10 (1703)

javascript Tip_when_get_style_num

使用 requests.get 或 webdriver.get 时无法获取所有 HTML

laravel 里面结合关联查询 的when()用法

selenium - webdriver - 截图方法get_screenshot_as_file()

Getting NullPointerException when running Spark Code in Zeppelin