1

My Protractor and Typescript based test code is broken, after team install local SSL certificate on the server. Though it able to load the provided URL on browser but still throwing error " Failed: Timed out waiting for asynchronous Angular tasks to finish after 11 seconds. This may be because the current page is not an Angular application."

Based on Protractor-invalid-ssl link have added below snippet in my config but still it throw same error. Have also tried with other options: acceptSslCerts: true, trustAllSSLCertificates: true, acceptInsecureCerts:true, ACCEPT_SSL_CERTS:true

But none of the option/arguments work.

/**Browser capabilities  */
capabilities: {
    browserName: 'chrome',
    marionette : true,
    acceptInsecureCerts : true
 },

Have also tried with firefox still getting same error.

Using Node v8.11.3, chrome 69.0, Protractor 5.4.0, Jasmine 2

rocky
  • 139
  • 3
  • 16
  • Based on the error, when I add browser.ignoreSynchronization=true before my url load. Then code works and able to identify the elements. and able to perform the action however consistency of execution result is issue. – rocky Sep 27 '18 at 06:48

1 Answers1

2

When using browser 'chrome', do not set marionette propertie its firefox specific.

You can try with the following capability for chrome:

capabilities: {
    browserName: 'chrome',
    trustAllSSLCertificates: true,
    acceptInsecureCerts: true,
    ACCEPT_SSL_CERTS: true,
 },
Infern0
  • 2,565
  • 1
  • 8
  • 21