configure selenium in ubuntu for testing php in codeception

1.9k Views Asked by At

I want to test some drag and drop scenarios in php code using codeception for that i need to configure selenium module in codeception.

I am trying to test my php code(web guy) through selenium using codeception. but i was unable to do that.

I have installed Selenium RC Server I am using ubuntu os even this link is http:// 127.0.0.1:4444/ opening but I have changed acceptance.yml as instructed in documentation while is running the test i am getting the following error

[Codeception\Exception\ModuleConfig]
Codeception\Util\Mink module is not configured!
Provided URL can't be accessed by this driver.Unable to connect !

please instruct me necessary changes to configure my selenium module.

please instruct me how to configure selenium module .my os is ubuntu

reference sites are here: Selenium

AcceptanceTests

1

There are 1 best solutions below

3
On

Answer can be multilined. :^ )

Launching selenium.

#!/bin/bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"

mkdir $DIR/../log
java -jar $DIR/selenium-server-standalone-2.29.0.jar 1>$DIR/../log/selenium-server-standalone.log 2>&1 &

acceptance.suite.yml

class_name: WebGuy
modules:
    enabled:
        - Selenium
        - WebHelper
    config:
        Selenium:
            url: 'http://url.local/'
            browser: firefox

P.S. do not forget to generate WebGuy (php codecept.phar build)