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.

module is not a function on using Firefox; chrome not reachable on using chrome. #3102

Closed
@AutomateSmart

Description

@AutomateSmart

*_$ protractor protractor.conf.js
*_DEBUG - Running with --troubleshoot
DEBUG - Protractor version: 3.2.2
DEBUG - Your base url for tests is http://localhost:9000
Using FirefoxDriver directly...
[launcher] Running 1 instances of WebDriver
DEBUG - WebDriver session successfully started with capabilities Capabilities {
'cssSelectorsEnabled' => true,
'browserName' => 'firefox',
'handlesAlerts' => true,
'javascriptEnabled' => true,
'nativeEvents' => false,
'platform' => 'WINDOWS',
'rotatable' => false,
'takesScreenshot' => true,
'version' => '45.0.1',
'webStorageEnabled' => true,
'applicationCacheEnabled' => true,
'databaseEnabled' => true,
'locationContextEnabled' => true,
'acceptSslCerts' => true }
DEBUG - Running with spec files C:\yoprojects\productsarchive\test\spec\controllers\main.js
Started
F

Failures:

  1. Controller: MainCtrl encountered a declaration exception
    Message:
    TypeError: module is not a function
    Stack:
    TypeError: module is not a function
    at Suite. (C:\yoprojects\productsarchive\test\spec\controllers\main.js:7:14)
    at Object. (C:\yoprojects\productsarchive\test\spec\controllers\main.js:3:1)
    at Module._compile (module.js:409:26)
    at Object.Module._extensions..js (module.js:416:10)
    at Module.load (module.js:343:32)
    at Function.Module._load (module.js:300:12)
    at Module.require (module.js:353:17)

1 spec, 1 failure
Finished in 0.014 seconds
[launcher] 0 instance(s) of WebDriver still running
[launcher] firefox #1 failed 1 test(s)
[launcher] overall: 1 failed spec(s)
[launcher] Process exited with error code 1

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions