(driver, frame)
| 85 | return new Condition('to be able to switch to frame', condition) |
| 86 | |
| 87 | function attemptToSwitchFrames(driver, frame) { |
| 88 | return driver |
| 89 | .switchTo() |
| 90 | .frame(frame) |
| 91 | .then( |
| 92 | function () { |
| 93 | return true |
| 94 | }, |
| 95 | function (e) { |
| 96 | if (!(e instanceof error.NoSuchFrameError)) { |
| 97 | throw e |
| 98 | } |
| 99 | }, |
| 100 | ) |
| 101 | } |
| 102 | } |
| 103 | |
| 104 | /** |
no test coverage detected