On Fri, Oct 24, 2014 at 9:37 PM, S Page <[email protected]> wrote:

>
> 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?
>

I'll defer to Dan or Zeljko (or Google) for a full CSish explanation...
These statements accomplish the same thing, but  the "=>" is an older
syntax and the second way is preferred today.

-Chris
_______________________________________________
QA mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/qa

Reply via email to