【发布时间】:2011-08-01 22:10:07
【问题描述】:
我已经使用 selenium 大约 3 个月了。我的测试在 Firefox 3.6 中运行良好。但是,当我更新到 Firefox 4 和 selenium-server 2.0b3 时,确认对话框出现问题。
代码如下(很简单):
choose_ok_on_next_confirmation
click("delete_button")
get_confirmation
wait_for_page_to_load
我进行了很多搜索并尝试了许多其他东西,例如 assert_confirmation 或 store_confirmation。即使is_confirmation_present 也不起作用。他们无法检测到我认为的对话。
我降级到 Firefox 3.6 并且运行良好。
有人知道原因吗?我不太了解 Firefox 4 的工作原理。而且我还得向我的伙伴解释这个问题。
【问题讨论】:
标签: dialog selenium-webdriver firefox4 confirmation