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.
结果,我有 Capybara::Element 的实例和 Selenium::WebDriver::Element 中的方法不能根据当前元素使用。我做错了什么?
您可以使用#native直接从驱动程序获取元素并在其上执行其方法,如下所示:
#native
your_element.native.desired_method(args)