power_settings_new

Module WebHelper could not be found and loaded

by
+1 vote
412 views

I am new to Codeception. I am getting below error while running my code.

 

 
  [Codeception\Exception\ConfigurationException]
  Module WebHelper could not be found and loaded
 
by (171 points)
can you paste your acceptance.suite.yml content?
by
# Codeception Test Suite Configuration
#
# Suite for acceptance tests.
# Perform tests in browser using the WebDriver or PhpBrowser.
# If you need both WebDriver and PHPBrowser tests - create a separate suite.

class_name: AcceptanceTester
modules:
    enabled:
        - WebDriver
        - WebHelper
        
    config:
        WebDriver:
            url: 'http://github.com'
            browser: 'firefox'

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register.

1 Answer

by (171 points)
0 votes

Replace WebHelper with \Helper\Acceptance 

 

class_name: AcceptanceTester
modules:
    enabled:
        - WebDriver
        - \Helper\Acceptance 
    config:
        WebDriver:
            url: 'http://github.com'
            browser: 'firefox'
 
Hope that helps.
add
...