Is there a Python equivalent to Ruby gems "site_prism" or "page_object"?



  • I'd like to know if there is a framework in Python which supports a clean way to define the Page Object Elements on a Page Object. The site_prism gem does it like so: class Home < SitePrism::Page set_url "/index.htm" set_url_matcher /google.com/?/ element :search_field, "input[name='q']" element :search_button, "button[name='btnK']" elements :footer_links, "#footer a" section :menu, MenuSection, "#gbx3" end class MenuSection < SitePrism::Section element :search, "a.search" element :images, "a.image-search" element :maps, "a.map-search" end Does anyone know of a Python package which gives me something similar to site_prism or page_object?



  • Another option is the page-objects library.



Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2