A
A
Arx7772015-10-06 18:12:37
PHP
Arx777, 2015-10-06 18:12:37

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 '

Selenium is running. When running the test, the following error occurs
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

1 answer(s)
A
Alexey Solodky, 2015-10-06
@Arx777

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 question

Ask a Question

731 491 924 answers to any question