G
G
gitdev2021-01-08 18:13:41
Codeception
gitdev, 2021-01-08 18:13:41

Why did an error appear after adding the WebDriver module to Codeception, and how to solve it?

Fatal error: Cannot redeclare _generated\AcceptanceTesterActions::switchToIFrame() in /var/www/html/var/_support/_generated/AcceptanceTesterActions.php on line 3069

actor: AcceptanceTester
modules:
    enabled:
        - PhpBrowser:
            url: ~
            curl:
                CURLOPT_TIMEOUT: 60
        - WebDriver:
            url: ~
            browser: chrome
        - \Helper\Acceptance
        - \Helper\DataHelper
        - \Helper\UrlHelper
        - \Helper\CoreUrlHelper
        - \Helper\WordOfTheDayHelper
        - Asserts
        - REST:
            url: https://example.com
            depends: PhpBrowser

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question