Answer the question
In order to leave comments, you need to log in
Error in Codeception Selenium when running test?
Settings
acceptance.suite.yml
class_name: AcceptanceTester
modules:
enabled:
- WebDriver
- PhpBrowser
- \Helper\Acceptance
config:
WebDriver:
url: ' localhost/EnglishAndComands '
port: 4444
browser: 'firefox'
wait: 10
restart: true
capabilities:
unexpectedAlertBehaviour: 'accept'
PhpBrowser:
url: ' localhost/EnglishAndComands '
Running WelcomeCept ... PHP Fatal error: Cannot redeclare _generated\AcceptanceTesterActions::switchToIframe() in /var/www/html/test/tests/_support/_generated/AcceptanceTesterActions.php on line 2760
Fatal error: Cannot redeclare _generated\AcceptanceTesterActions: :switchToIframe() in /var/www/html/test/tests/_support/_generated/AcceptanceTesterActions.php on line 2760
Answer the question
In order to leave comments, you need to log in
The error is not related to selenium. This is a codeception issue.
generated/AcceptanceTesterActions.php is the file that is generated when you run build.
It is assembled from several parts - modules and Tester from _support
View them. perhaps the switchToIframe function is duplicated there - which is what the error says.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question