How to use the protractor.browser.manage function in protractor

To help you get started, we’ve selected a few protractor examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github siegrainwong / ancorazor / Ancorazor.API / ClientApp / e2e / src / app.e2e-spec.ts View on Github external
afterEach(async () => {
    // Assert that there are no errors emitted from the browser
    const logs = await browser.manage().logs().get(logging.Type.BROWSER);
    expect(logs).not.toContain(jasmine.objectContaining({
      level: logging.Level.SEVERE,
    }));
  });
});
github Uintra / Uintra / src / Uintra20 / Content / uintra20 / e2e / src / app.e2e-spec.ts View on Github external
afterEach(async () => {
    // Assert that there are no errors emitted from the browser
    const logs = await browser.manage().logs().get(logging.Type.BROWSER);
    expect(logs).not.toContain(jasmine.objectContaining({
      level: logging.Level.SEVERE,
    } as logging.Entry));
  });
});
github eclipse / vorto-examples / vorto-middleware / middleware-frontend / e2e / src / app.e2e-spec.ts View on Github external
afterEach(async () => {
    // Assert that there are no errors emitted from the browser
    const logs = await browser.manage().logs().get(logging.Type.BROWSER);
    expect(logs).not.toContain(jasmine.objectContaining({
      level: logging.Level.SEVERE,
    } as logging.Entry));
  });
});
github kubernetes-sigs / kustomize / hack / crawl / ui / e2e / src / app.e2e-spec.ts View on Github external
afterEach(async () => {
    // Assert that there are no errors emitted from the browser
    const logs = await browser.manage().logs().get(logging.Type.BROWSER);
    expect(logs).not.toContain(jasmine.objectContaining({
      level: logging.Level.SEVERE,
    } as logging.Entry));
  });
});
github FabianGosebrink / ASPNETCore-Angular-SignalR-Typescript / frontend / angularsignalrclient / e2e / src / app.e2e-spec.ts View on Github external
afterEach(async () => {
    // Assert that there are no errors emitted from the browser
    const logs = await browser.manage().logs().get(logging.Type.BROWSER);
    expect(logs).not.toContain(jasmine.objectContaining({
      level: logging.Level.SEVERE,
    } as logging.Entry));
  });
});
github acidb / mobiscroll / examples / angular / e2e / src / app.e2e-spec.ts View on Github external
afterEach(async () => {
    // Assert that there are no errors emitted from the browser
    const logs = await browser.manage().logs().get(logging.Type.BROWSER);
    expect(logs).not.toContain(jasmine.objectContaining({
      level: logging.Level.SEVERE,
    } as logging.Entry));
  });
});
github Activiti / activiti-modeling-app / projects / ama-testing / src / e2e / util / flush-last-browser-logs.ts View on Github external
export async function flushLastBrowserLogs(length = 1000) {
    const browserLog = await browser.manage().logs().get('browser');
    const lastNLog = browserLog.reverse().slice(0, length);

    lastNLog.forEach((logEntry) => {
        switch (logEntry.level.name_) {
            case 'SEVERE':
                Logger.error(`${logEntry.timestamp}: ${logEntry.message}`);
            break;

            case 'WARNING':
                Logger.warn(`${logEntry.timestamp}: ${logEntry.message}`);
            break;

            default:
                Logger.log(`${logEntry.timestamp}: ${logEntry.message}`);
        }
    });
github coryrylan / ngx-lite / e2e / src / ngx-eq / ngx-eq.po.ts View on Github external
setMediumBrowserSize() {
    browser
      .manage()
      .window()
      .setSize(defaultConfig.medium + scrollBarAndPaddingOffset, 1024);
  }
github coryrylan / ngx-lite / e2e / src / ngx-eq / ngx-eq.po.ts View on Github external
setExtraLargeBrowserSize() {
    browser
      .manage()
      .window()
      .setSize(defaultConfig.extraLarge + scrollBarAndPaddingOffset, 1024);
  }
}
github qgrid / ng2 / e2e / steps / common.steps.ts View on Github external
async function checkErrors() {
	await browser.manage().logs().get('browser').then((browserLog) => {
		let str = '' + browserLog.length + ' errors';
		let errorLog = '\n';
		browserLog.map((item) => { errorLog += JSON.stringify(item.message) + '\n' });
		expect(str).to.equal('0 errors', errorLog);
	})
}