[QA] better page object explanation, colon confusion

S Page spage at wikimedia.org
Sat Oct 25 04:37:31 UTC 2014


After talking to Chris, I updated
https://www.mediawiki.org/wiki/Quality_Assurance/Browser_testing/Writing_tests#Page_Objects

I notice some documentation puts the colon in front of the identifying
attribute with an arrow, but our page object files put the colon after the
identifying attribute with no arrow.

E.g. https://github.com/cheezy/page-object/wiki/Elements has

  button(:your_name, :id => 'an_id')

but our features/support/foo_page.rb files have e.g.

  h1(:first_heading, id: "firstHeading")

is this Ruby strangeness, or just supporting alternative syntaxes?

-- 
=S Page  Features engineer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.wikimedia.org/pipermail/qa/attachments/20141024/a6736caf/attachment.html>


More information about the QA mailing list