【发布时间】:2016-02-24 20:56:40
【问题描述】:
我正在使用 kerodon 测试 clojure luminus/selmer 应用程序。
我在尝试使用id=name 访问输入字段时收到java.lang.IllegalArgumentException: field could not be found with selector "[:#name]",如下所示:
(deftest home
(-> (session app)
(visit "/")
(fill-in [:#name] "Peter")
(fill-in [:#age] "25")
(press "Sign up!")
(within [:h1]
(has (text? "Hello Peter 25")))))
【问题讨论】: