* {{> switchTo }}
(locator)
| 2779 | * {{> switchTo }} |
| 2780 | */ |
| 2781 | async switchTo(locator) { |
| 2782 | this.browser.isInsideFrame = true |
| 2783 | if (!locator) { |
| 2784 | return this.browser.switchFrame(null) |
| 2785 | } |
| 2786 | |
| 2787 | let res = await this._locate(locator, true) |
| 2788 | assertElementExists(res, locator) |
| 2789 | res = usingFirstElement(res) |
| 2790 | return this.browser.switchFrame(res) |
| 2791 | } |
| 2792 | |
| 2793 | /** |
| 2794 | * {{> switchToNextTab }} |
no test coverage detected