[QA] Fwd: suggestions for browser test debugging
Dan Duvall
dduvall at wikimedia.org
Tue Aug 5 18:26:55 UTC 2014
On Tue, Aug 5, 2014 at 10:20 AM, S Page <spage at wikimedia.org> 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>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wikimedia.org/pipermail/qa/attachments/20140805/8efa8d1c/attachment.html>
More information about the QA
mailing list