This commit is contained in:
Thomas Nordquist
2019-06-18 10:27:42 +02:00
parent 1d8900d6eb
commit 6baeafce39
3 changed files with 5 additions and 5 deletions

View File

@@ -29,7 +29,7 @@ export async function writeText(text: string, browser: Browser, delay = 0) {
}
}
export async function delteTextWithBackspaces(element: Element, browser: Browser, delay = 0, count = 0) {
export async function deleteTextWithBackspaces(element: Element, browser: Browser, delay = 0, count = 0) {
const length = count > 0 ? count : (await element.getValue()).length
for (let i = 0; i < length; i += 1) {
await browser.keys(['Backspace'])