Does site_prism allow using other selectors than CSS?

让人想犯罪 __ 提交于 2019-12-24 13:13:52

问题


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://stackoverflow.com/questions/11293386/does-site-prism-allow-using-other-selectors-than-css

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!