我正在使用firefox webdriver进行测试,直到firefox最近升级到31才能正常运行。 firefox webdriver需要几分钟才能找到一个元素,在旧版本中花了不到一秒钟。
这不会发生在所有网页上,也不会发生在同一页面上的所有元素中。似乎只有第一个需要这么长时间。
有没有人遇到过类似的问题?任何建议都将深表感谢,提前谢谢!
的问候, 韩宝
以下是selenum日志供参考:
18:02:55.941 INFO - Java: Oracle Corporation 24.51-b03
18:02:55.944 INFO - OS: Windows 8 6.2 amd64
18:02:55.961 INFO - v2.42.2, with Core v2.42.2. Built from revision 6a6995d
......
18:03:42.840 INFO - Executing: [new session: Capabilities [{firefox_profile=UEsDBBQACAgIAHWQ+UQAAAAAAAAAA..., browserName=firefox, unexpectedAlertBehaviour=ignore}]])
18:03:42.865 INFO - Creating a new session for Capabilities [{firefox_profile=UEsDBBQACAgIAHWQ+UQAAAAAAAAAA..., browserName=firefox, unexpectedAlertBehaviour=ignore}]
18:03:50.423 INFO - Done: [new session: Capabilities [{firefox_profile=UEsDBBQACAgIAHWQ+UQAAAAAAAAAA..., browserName=firefox, unexpectedAlertBehaviour=ignore}]]
18:03:50.454 INFO - Executing: [set window position])
18:03:50.483 INFO - Done: [set window position]
18:03:50.491 INFO - Executing: [set window size])
18:03:50.513 INFO - Done: [set window size]
18:03:50.522 INFO - Executing: [page load wait: 60000])
18:03:50.545 INFO - Done: [page load wait: 60000]
18:03:50.552 INFO - Executing: [implicitly wait: 1000])
18:03:50.565 INFO - Done: [implicitly wait: 1000]
18:03:50.573 INFO - Executing: [set script timeoutt: 60000])
18:03:50.589 INFO - Done: [set script timeoutt: 60000]
18:03:50.596 INFO - Executing: [get: https://user:password@test.site])
18:03:53.048 INFO - Done: [get: https://user:password@test.site]
......here goes the first element, nearly 4 minutes and NO timeout
18:04:09.796 INFO - Executing: [find element: By.id: input-dialog-year])
18:07:44.731 INFO - Done: [find element: By.id: input-dialog-year]
......the second less than 1 second
18:07:46.784 INFO - Executing: [find element: By.id: input-dialog-month])
18:07:46.799 INFO - Done: [find element: By.id: input-dialog-month]
......all the follwing are normal
18:07:48.960 INFO - Executing: [find element: By.id: info_sex_2])
18:07:48.972 INFO - Done: [find element: By.id: info_sex_2]