Fix typo
This commit is contained in:
@@ -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'])
|
||||
|
||||
Reference in New Issue
Block a user