rubycapybarasite-prism

Get css selector from a Site Prism page object


Is there a way to get the css selector for a page object you defined in SitePrism? For instance if I have

class myPageObject < SitePrism::Page
  ...
  element :my_element, '.my-element-class'
  ...
end

How could I use the selector in a test to get .my-element-class?


Solution

  • No - SitePrism doesn't store the parameters passed to element in any accessible way