selenium webdriver - "idle-timeout" in behat.yml for setting hte timeout value throws exception - -
added code profile follows. if remove idle-timeout works fine , if added gives exception- [symfony\component\config\definition\exception\invalidconfigurationexception]
unrecognized options "idle_timeout" under "behat.extensions.behat_minkextension_extension.selenium2.capabilities"
windows8_ie10: context: class: 'featurecontext' extensions: behat\minkextension\extension: selenium2: browser: internet explorer wd_host: seodevelopment:@ondemand.saucelabs.com/wd/hub capabilities: { "platform": "windows 8", "version": "10", "idle-timeout": 200}
this happens because there table of recognised capabilities , idle-timeout
not 1 of them. it's put in place filter out bad configuration , notify if messed up. work around use 'extra_capabilities' option, doesn't normalised , validated , won't throw error. unfortunately documentation doesn't cover lot of things , have learn them (or here).
windows8_ie10: context: class: 'featurecontext' extensions: behat\minkextension\extension: selenium2: browser: internet explorer wd_host: seodevelopment:@ondemand.saucelabs.com/wd/hub capabilities: { "platform": "windows 8", "version": "10" } extra_capabilities: { "idle-timeout": 200 }
extra capabilities merged capabilities object , passed selenium server when mink starts new session. difference between 2 capabilities object doesn't normalised capabilities, can specify whatever want there. when run selenium server logs when session started , capabilities browser driver receives.
21:54:51.659 info - executing: [new session: capabilities [{tags=[ian-bytcheks-macbook-pro.local, php 5.5.15], platform=any, browserversion=9, ignorezoomsetting=false, browsername=chrome, devicetype=tablet, name=behat feature suite, browser=chrome, deviceorientation=portrait, chromeoptions={args=[--test-type]}, version=21}]])
note, relates behat 3, earlier versions may differ. find tag in mink selenium 2 driver repo , similar class implements logic.
Comments
Post a Comment