On Tue, Aug 5, 2014 at 10:20 AM, S Page <[email protected]> wrote: > > I can't figure out how to define a new foo_element and see if it matches > anything. >
Since element definitions use "class macros" (which are essentially class methods), you should be able to define new elements from within the pry repl like so: pry> ArticlePage.div(:something, id: "some-id") pry> on(ArticlePage).something_element.when_present... -- Dan Duvall Automation Engineer Wikimedia Foundation <http://wikimediafoundation.org>
_______________________________________________ QA mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/qa
