* @param {!IThenable<!Session>} session * @param {...?} rest
(session, ...rest)
| 137 | * @param {...?} rest |
| 138 | */ |
| 139 | constructor(session, ...rest) { |
| 140 | super(session, ...rest) |
| 141 | |
| 142 | const pd = this.getSession().then((session) => { |
| 143 | return new ctor(session, ...rest) |
| 144 | }) |
| 145 | |
| 146 | /** @override */ |
| 147 | this.then = pd.then.bind(pd) |
| 148 | |
| 149 | /** @override */ |
| 150 | this.catch = pd.catch.bind(pd) |
| 151 | } |
| 152 | } |
| 153 | THENABLE_DRIVERS.set(ctor, thenableWebDriverProxy) |
| 154 | } |
no test coverage detected