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.
我有选择输入元素的代码:
html = html.at_css("input")
我需要如何修改选择器以从选择 ( type="hidden") 中排除隐藏的输入?
type="hidden"
我相信这就是你想要的:
html.at_xpath("//input[not (@type='hidden')]")
刚刚用一个简单的例子对此进行了测试,它似乎有效。