I have a question about Session with Codeception and PhantomJS. When I use PhantomJS driver that I login (I'm back on login page) and add to basket (basket is empty) tests don't work. I think that is a session problem.
Thanks for any suggestion.
PhantomJS start command:
phantomjs --webdriver=4444 --config=tests/phantomjs_config.json --cookies-file=/Users/brtsos/Projects/projectname/cookies.txt --local-storage-path=/Users/brtsos/Projects/projectname/ --local-storage-quota=50000 --web-security=false
phantomjs_config.json:
{ "sslProtocol": "any", "javascriptEnabled": true, "ignoreSslErrors": true, "diskCacheEnabled": true }
acceptance.suite.yml:
actor: AcceptanceTester
modules:
enabled:
- WebDriver
- \Helper\Acceptance
config:
WebDriver:
url: http://myurl.dex
browser: 'phantomjs'
window_size: 1920x1080
extensions:
enabled:
- Codeception\Extension\Recorder
Aucun commentaire:
Enregistrer un commentaire