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

Plugin's onPageLoad() fired after angular bootstap #4968

@jimsleon

Description

@jimsleon

according to the documentation, plugin's onPageLoad should be fired before angular bootstraps,
but the actual result is that it is fired after angular bootstraped(page show up and ajax calls in onInit() sent out)


  • Node Version: 8.11.1
  • Protractor Version: 5.3.0
  • Angular Version: 5.2.3
  • Browser(s): Chrome 68.0.3440
  • Operating System and Version Windows 10

==============================================================
/**

  • This is called inside browser.get() directly after the page loads, and before angular bootstraps.
  • @param {ProtractorBrowser} browser The browser instance which is loading a page.
  • @this {Object} bound to module.exports.
  • @throws {*} If this function throws an error, a failed assertion is added to
  • the test results.
    
  • @return {webdriver.promise.Promise=} Can return a promise, in which case
  • protractor will wait for the promise to resolve before continuing.  If
    
  • the promise is rejected, a failed assertion is added to the test results.
    

*/
onPageLoad?(browser: ProtractorBrowser): void|webdriver.promise.Promise;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions