Does site_prism allow using other selectors than CSS?
问题 I'm researching gems that allow me to use Page Object Pattern along Capybara. I found out site_prism and looks very promising. My question is, is there a way to define elements with selectors other than css? Like Xpath, Dom, maybe just the id's of the elements, etc. Thanks and Regards! 回答1: UPDATE: It is possible, as of SitePrism 2.1 to use XPath expressions to find elements and sections, as well as CSS selectors. ===== CSS only at the moment. I may change that in the future though. 来源: https