【发布时间】:2016-05-31 04:00:23
【问题描述】:
https://gist.github.com/codyc4321/724f05aca8f6775e2fc1
嗨,bitbucket 更改了他们的登录页面,这给我带来了麻烦。基于以下要点,使用driver.click_button 原因:
ElementNotVisibleException at /bitbucket/create-repo
Message: Element is not currently visible and so may not be interacted with
Stacktrace:
at fxdriver.preconditions.visible (file:///tmp/tmpSNzLIl/extensions/fxdriver@googlecode.com/components/command-processor.js:9981)
at DelayedCommand.prototype.checkPreconditions_ (file:///tmp/tmpSNzLIl/extensions/fxdriver@googlecode.com/components/command-processor.js:12517)
at DelayedCommand.prototype.executeInternal_/h (file:///tmp/tmpSNzLIl/extensions/fxdriver@googlecode.com/components/command-processor.js:12534)
at DelayedCommand.prototype.executeInternal_ (file:///tmp/tmpSNzLIl/extensions/fxdriver@googlecode.com/components/command-processor.js:12539)
at DelayedCommand.prototype.execute/< (file:///tmp/tmpSNzLIl/extensions/fxdriver@googlecode.com/components/command-processor.js:12481)
使用driver.submit_form 会导致浏览器本身出错:
使用driver.activate_hidden_element 原因:
ElementNotVisibleException at /bitbucket/create-repo
Message: Element is not currently visible and so may not be interacted with
activate_hidden_element 失败真的让我在最后 5 分钟里风雨飘摇。我怎样才能点击这个阻碍按钮?谢谢
【问题讨论】:
标签: python python-3.x selenium selenium-webdriver selenium-firefoxdriver