Skip to content

[Suggestions] Some syntactic sugar and extensions #285

@phanan

Description

@phanan

So I've been playing around with the lib for a while and often find myself wishing for some helpers/wrappers that feel a little bit more fluent e.g.:

  • Wrappers around event triggers i.e. wrapper.find(Foo).click() as a syntactic sugar for wrapper.find(Foo).trigger('click'). Maybe we can even go as far as wrapper.click(Foo)?
  • contains(Foo, Bar, Baz)
  • containsAny(Foo, Bar, Baz)
  • has() as an alias for contains()
  • id() for attributes().id() @robcresswell
  • more to be added

What do you guys think?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions