Allow custom timeouts on click (#14042)

This commit is contained in:
Stacey Gammon 2017-09-19 09:56:40 -04:00 committed by GitHub
parent d49692f122
commit c3c55ded22

View file

@ -26,9 +26,9 @@ export function TestSubjectsProvider({ getService }) {
});
}
async click(selector) {
async click(selector, timeout = defaultFindTimeout) {
return await retry.try(async () => {
const element = await this.find(selector);
const element = await this.find(selector, timeout);
await remote.moveMouseTo(element);
await element.click();
});