Skip to content
This repository has been archived by the owner on Jul 29, 2024. It is now read-only.

Commit

Permalink
cleanup(types): Fix webelement.then() return type. (#3739)
Browse files Browse the repository at this point in the history
Fixes #3696. Also clean up the restart spec test.
  • Loading branch information
heathkit authored Nov 15, 2016
1 parent 6b7b6fb commit f4843d1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/element.ts
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ export class ElementArrayFinder extends WebdriverWebElement {
* an array of ElementFinders represented by the ElementArrayFinder.
*/
then(fn?: (value: any) => any | wdpromise.IThenable<any>, errorFn?: (error: any) => any):
wdpromise.Promise<any[]> {
wdpromise.Promise<any> {
if (this.actionResults_) {
return this.actionResults_.then(fn, errorFn);
} else {
Expand Down
2 changes: 1 addition & 1 deletion spec/basic/restart_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ describe('browser.restart', function() {
browser.get('https://google.com/');
});

afterAll(() => {
afterAll(function() {
browser.ignoreSynchronization = false;
});
});

0 comments on commit f4843d1

Please sign in to comment.