jayhealey / Webception

A Web UI for running Codeception tests.
MIT License
193 stars 59 forks source link

Call to undefined method WebGuy::switchToNextTab #59

Open xiki808 opened 7 years ago

xiki808 commented 7 years ago

I cannot call switchToNextTab WebDriver method, even though it is listed here. Why is this so?

New guy in both codeception and webception here!

Below is a copy of webception composer.json ( should be the latest )


    "name": "jayhealey/webception",
    "description": "Web Interface for running Codeception tests.",
    "keywords": ["codeception", "webception", "testing", "php", "web interface"],
    "homepage" : "https://github.com/jayhealey/Webception",
    "authors": [
        {
            "name": "James Healey",
            "email": "jayhealey@gmail.com",
            "homepage": "http://twitter.com/jayhealey",
            "role": "Developer"
        }
    ],
    "license": "MIT",
    "require": {
        "php": ">=5.3.0",
        "slim/slim": "2.*",
        "slim/views": "0.1.*",
        "twig/twig": "~1.13",
        "codeception/codeception": "2.*",
        "symfony/yaml": "2.5.x-dev"
    },
    "autoload": {
        "psr-0": {
            "App": ""
        }
    }
}
xiki808 commented 7 years ago

Updated composer.json as below in order to get the new methods


    "name": "jayhealey/webception",
    "description": "Web Interface for running Codeception tests.",
    "keywords": ["codeception", "webception", "testing", "php", "web interface"],
    "homepage" : "https://github.com/jayhealey/Webception",
    "authors": [
        {
            "name": "James Healey",
            "email": "jayhealey@gmail.com",
            "homepage": "http://twitter.com/jayhealey",
            "role": "Developer"
        }
    ],
    "license": "MIT",
    "require": {
        "php": ">=5.3.0",
        "slim/slim": "2.*",
        "slim/views": "0.1.*",
        "twig/twig": "~1.13",
        "codeception/codeception": "^2.2"
    },
    "autoload": {
        "psr-0": {
            "App": ""
        }
    }
}`
Naktibalda commented 7 years ago

switchToNextTab was implemented in Codeception 2.2.8, if you upgraded from earlier version, you have to run codecept build to regenerate _generated files and make new helper methods available.