appfolio / ae_page_objects

Page Objects for Capybara
MIT License
28 stars 9 forks source link

Add Node#element element factory to create elements off of existing elements #179

Closed dtognazzini closed 8 years ago

dtognazzini commented 8 years ago

Node#element supports the same arguments as Node.element but without the name parameter.

Node.element should be used to define static structure of pages that holds for the lifetime of a node instance (an element or document).

Node#element should be used to create an AePageObjects::Element instance from the current state of the node (element or document). For example, Node#element should be used for modals.