Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我们通过 Play Framework 2.0 使用FluentLenium,似乎无法找出您如何在页面的下拉列表中选择某个值。其他一切都非常简单并且运行良好。
我看到一些对 FluentSelect 的引用,但它们似乎只存在于 Java 版本中。
非常感谢 FreeNode 上#selenium 的帮助,答案很简单:
这是找到选项的情况,在其中找到值然后单击
所以在这种情况下,如果你在你的选项值上加上一个 ID,它很简单:
browser.$("#smalloption").click()
简单的!