【问题标题】:Python Splinter click isnt workingPython Splinter 点击不起作用
【发布时间】:2014-02-07 01:03:46
【问题描述】:

我刚开始使用 python + splinter

http://splinter.cobrateam.info/docs/tutorial.html

很遗憾,我无法让示例运行。

我不知道是否:

 browser.find_by_name('btnG')

正在寻找任何东西。

其次,我尝试点击按钮 button = browser.find_by_name('btnG').first button.click()

这不会引发错误,但不会发生任何事情。

我再次尝试了教程: http://f.souza.cc/2011/05/splinter-python-tool-for-acceptance.html

然后我又被 CLICK 卡住了。

我正在使用 python 2.7.3,以及今天来自 splinter/selenium 的最新内容。

我该如何解决这个问题(其他人有问题吗)?

【问题讨论】:

    标签: python splinter


    【解决方案1】:

    当所有其他方法都失败时更新 firefox。

    我升级了 2014 年 1 月 9 日的版本,一切顺利!

    【讨论】:

      【解决方案2】:

      到目前为止,我的 (Chromium) 浏览器中的按钮名称是 'btnK'

      【讨论】:

        猜你喜欢
        • 2014-04-06
        • 1970-01-01
        • 1970-01-01
        • 2015-12-29
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多