Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/selenium/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 联合概念+;Selenium服务器浏览器(chrome)弹出,但网页始终为白色_Php_Selenium_Codeception - Fatal编程技术网

Php 联合概念+;Selenium服务器浏览器(chrome)弹出,但网页始终为白色

Php 联合概念+;Selenium服务器浏览器(chrome)弹出,但网页始终为白色,php,selenium,codeception,Php,Selenium,Codeception,使用最新的Codeception 尝试了selenium服务器2.40.0和2.42.2 配置的Snippit: enabled: - WebDriver WebDriver: url: 'foo' browser: chrome 我的路径中有chrome web驱动程序。 从cmd行,我启动selenium服务器 java -jar C:\...\vendor\selenium\selenium-server-standalone-2.42.2

使用最新的Codeception

尝试了selenium服务器2.40.0和2.42.2

配置的Snippit:

enabled:
    - WebDriver
    WebDriver:
        url: 'foo'
        browser: chrome
我的路径中有chrome web驱动程序。 从cmd行,我启动selenium服务器

java -jar C:\...\vendor\selenium\selenium-server-standalone-2.42.2.jar
从命令行2

 run acceptance fooCept.php 

Chrome将打开,但页面始终为空。如果我只运行了一个步骤,我记得无法看到页面上的任何内容,因为它太快了。但是,使用我最新的Codeception,当我完成30个步骤时,我无法查看网页。

您的配置语法不正确。在acceptance.suite.yml中尝试以下操作:

modules:
    enabled:
        - WebDriver
    config:
        WebDriver:
            url: 'http://your.site.dev'
            browser: 'chrome'

PHPBrowser也在acceptance.suite.yml中启用。一旦我删除了这个,它就工作了。

谢谢,我错过了chrome的一些引语。然而,它仍然不起作用。还有其他想法吗?