Acceptance tests with selenium and coding, the browser shows a blank page

I am using code with Yii2, and my configuration is as follows:

class_name: AcceptanceTester modules: enabled: - WebDriver: url: 'http://ucms.ac.ir/admin/index-test.php/' browser: chrome - tests\codeception\common\_support\FixtureHelper - Yii2 config: Yii2: configFile: '../config/backend/acceptance.php' 

tests run and they succeed, but nothing is displayed on a new browser tab opened by selenium. I saw some lessons, and in these tutorials the browser actually shows the testing process. also, when an error occurs, and the screenshot is taken using the code generation for the subsequent link, this is only a white blank page. I am on ubuntu 14.10, selenium 2.47.1 and chrome 45. This also happens when I use firefox instead of chrome.

+6
source share
1 answer

I asked the same question in github repo codeception and here is the answer:

Do not use Yii2 and WebDriver in the same package.

My mistake is the corrected configs:

 class_name: AcceptanceTester modules: enabled: - WebDriver: url: 'http://ucms.ac.ir/admin/index-test.php/' browser: chrome - tests\codeception\common\_support\FixtureHelper 
0
source

All Articles