<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Tue, Aug 5, 2014 at 10:20 AM, S Page <span dir="ltr"><<a href="mailto:spage@wikimedia.org" target="_blank">spage@wikimedia.org</a>></span> wrote:<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div>I can't figure out how to define a new foo_element and see if it matches anything.</div></div></div></div></blockquote><div><br></div><div>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:</div>
<div><br></div><div>pry> ArticlePage.div(:something, id: "some-id")</div><div>pry> on(ArticlePage).something_element.when_present...</div><div><br></div></div>-- <br>
<div dir="ltr">Dan Duvall<div>Automation Engineer</div><div><a href="http://wikimediafoundation.org" target="_blank">Wikimedia Foundation</a><br></div></div>
</div></div>