diff --git a/types/selenium-webdriver/index.d.ts b/types/selenium-webdriver/index.d.ts index 4721033bfd..aa8a696576 100644 --- a/types/selenium-webdriver/index.d.ts +++ b/types/selenium-webdriver/index.d.ts @@ -3448,7 +3448,7 @@ export class TargetLocator { * @return {!promise.Promise} A promise that will be resolved * when the driver has changed focus to the specified frame. */ - frame(nameOrIndex: number | WebElement): promise.Promise; + frame(nameOrIndex: number | WebElement | null): promise.Promise; /** * Schedules a command to switch the focus of all future commands to another