Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Call to undefined method WebGuy::switchToNextTab #59

Open
xiki808 opened this issue Feb 2, 2017 · 2 comments
Open

Call to undefined method WebGuy::switchToNextTab #59

xiki808 opened this issue Feb 2, 2017 · 2 comments

Comments

@xiki808
Copy link

xiki808 commented Feb 2, 2017

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": "[email protected]",
            "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
Copy link
Author

xiki808 commented Feb 2, 2017

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": "[email protected]",
            "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
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants