Call to undefined method WebGuy::switchToNextTab
xiki808 opened this issue · 2 comments
xiki808 commented
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
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
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.