Fix build

This commit is contained in:
Thomas Nordquist
2020-01-17 09:29:50 +01:00
parent 8645789550
commit 34cc38ab3c
11 changed files with 548 additions and 244 deletions

View File

@@ -40,8 +40,10 @@ export async function deleteTextWithBackspaces(element: Element, browser: Browse
export async function setTextInInput(name: string, text: string, browser: Browser) {
const input = await browser.$(`//label[contains(text(), "${name}")]/..//input`)
await clickOn(input, browser, 1)
await input.clearValue()
await browser.keys(text)
await browser.$(`//label[contains(text(), "${name}")]/..//input`)
await deleteTextWithBackspaces(input, browser)
await input.setValue(text)
}
export async function moveToCenterOfElement(element: Element, browser: Browser) {