1.0.14 • Published 6 months ago

@types/protractor-browser-logs v1.0.14

Weekly downloads
46
License
MIT
Repository
github
Last release
6 months ago

Installation

npm install --save @types/protractor-browser-logs

Summary

This package contains type definitions for protractor-browser-logs (https://github.com/wix/protractor-browser-logs).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/protractor-browser-logs.

index.d.ts

// Type definitions for protractor-browser-logs 1.0
// Project: https://github.com/wix/protractor-browser-logs
// Definitions by: Saqib Rokadia <https://github.com/rokadias>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3

import * as webdriver from 'selenium-webdriver';
import Entry = webdriver.logging.Entry;
import { ProtractorBrowser } from 'protractor/built';

declare namespace browserLogs {
    interface BrowserLogOptions {
        reporters?: Array<(entries: Entry[]) => void> | undefined;
    }

    type matchPredicateFunction = (entry: Entry) => boolean;
    type matchPredicate = string | RegExp | matchPredicateFunction;
    interface BrowserLogs {
        ERROR: matchPredicateFunction;
        WARNING: matchPredicateFunction;
        DEBUG: matchPredicateFunction;
        INFO: matchPredicateFunction;
        LOG: matchPredicateFunction;

        or(a: matchPredicateFunction, b: matchPredicateFunction): matchPredicateFunction;
        and(a: matchPredicateFunction, b: matchPredicateFunction): matchPredicateFunction;
        reset(): void;
        logs(): Entry[];
        verify(): void;
        ignore(... matches: matchPredicate[]): matchPredicateFunction[];
        expect(... matches: matchPredicate[]): matchPredicateFunction[];
    }
}

export = browserLogs;
declare function browserLogs(browser: ProtractorBrowser, options?: browserLogs.BrowserLogOptions): browserLogs.BrowserLogs;

Additional Details

Credits

These definitions were written by Saqib Rokadia.

1.0.14

6 months ago

1.0.13

7 months ago

1.0.12

8 months ago

1.0.11

3 years ago

1.0.10

4 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago