|
|
@ -6,10 +6,10 @@ class ValidateValueInput extends EventEmitter { |
|
|
|
const browser = this.api |
|
|
|
const browser = this.api |
|
|
|
browser.perform((done) => { |
|
|
|
browser.perform((done) => { |
|
|
|
browser |
|
|
|
browser |
|
|
|
.click(selector) |
|
|
|
.click(selector).saveScreenshot('tests/commands/screenshot/validateValueInput.png') |
|
|
|
.clearValue(selector) |
|
|
|
.clearValue(selector).saveScreenshot('tests/commands/screenshot/validateValueInput1.png') |
|
|
|
.clearValue(selector) |
|
|
|
.clearValue(selector).saveScreenshot('tests/commands/screenshot/validateValueInput2.png') |
|
|
|
.setValue(selector, valueTosSet) |
|
|
|
.setValue(selector, valueTosSet).saveScreenshot('tests/commands/screenshot/validateValueInput3.png') |
|
|
|
.pause(500) |
|
|
|
.pause(500) |
|
|
|
.execute(function (selector) { |
|
|
|
.execute(function (selector) { |
|
|
|
const elem = document.querySelector(selector) as HTMLInputElement |
|
|
|
const elem = document.querySelector(selector) as HTMLInputElement |
|
|
|