Blurrable
Methods
Table of Contents
blurrable
Blurs element matched by selector.
Parameters
selector
string CSS selector of the element which will be blurreduserOptions
(optional, default{}
)options
Object Additional options
Examples
// <input class="name">
// <input class="email">
import { create, blurrable } from 'ember-cli-page-object';
const page = create({
blur: blurrable('.name')
});
// blurs on element with selector '.name'
page.blur();
// <div class="scope">
// <input class="name">
// </div>
// <input class="email">
import { create, blurrable } from 'ember-cli-page-object';
const page = create({
blur: blurrable('.name', { scope: '.scope' })
});
// blurs on element with selector '.scope .name'
page.blur();
// <div class="scope">
// <input class="name">
// </div>
// <input class="email">
import { create, blurrable } from 'ember-cli-page-object';
const page = create({
scope: '.scope',
blur: blurrable('.name')
});
// blurs on element with selector '.scope .name'
page.blur();
Returns Descriptor