Driver.manage().timeouts() 不可用 [英] Driver.manage().timeouts() is not available

查看:46
本文介绍了Driver.manage().timeouts() 不可用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用 webdriver java(2.33) 的最新 jar,尝试设置隐式等待但 timeouts() 在可用中不可用Eclipsedriver.manage() 的选项.

Using the latest jar of webdriver java(2.33), trying to set implicit wait but the timeouts() is not available in available options for driver.manage() in Eclipse.

它抛出一个错误,表明这不是此类的可用选项.对 2.30 进行了相同的尝试,并且重复出现相同的问题.有没有人遇到过这样的问题,请告诉我如何处理?

It throws an error that this is not an available option for this class. Tried the same with 2.30 and same issue was repeating. Has any one seen such issue, please let me know on how this can be handled?

WebDriver driver = new FirefoxDriver();
driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);

推荐答案

我遇到了问题.我正在将脚本从 RC 迁移到 WebDriver,并在构建路径中包含 RC 和 Webdriver Java jar.一旦我删除了 RC 文件,它就开始正常工作了.

I got the problem. I was migrating scripts from RC to WebDriver and included both RC and Webdriver Java jars in the build path. Once i removed the RC files, it started working fine.

感谢 Arran、HemChe 至少做出回应.一些无知的家伙给我的帖子评分 -1.

Thanks Arran, HemChe for atleast responding. Some ignorant fellow has rated my post -1 rating.

这篇关于Driver.manage().timeouts() 不可用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆