Skip to content

Feature request: create custom assertions via callback #123

Open
@krnlde

Description

@krnlde

It would be awesome to add custom assertions to a test similar to the .execute() function, like so

test.open('http://google.com/')
  .waitForElement('body')
  .assert.query('#someElement').evaluate(function () {
    return this.offsetLeft == 0;
  }, 'Your Message').end()
  .done();

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions