i have question using selenium in cucumber.
here cucumber features:
@selenium @javascript scenario: create forum given have site named "hairclub" , logged in admin when on "admin" page
to run, use command:
cucumber features/forum.feature
it works fine; opens browser (as can see @selenium @javascript tag
). looks good.
i want run same cucumber script not open browser; imagine if scenario grows take while run browser. want both capability run browser open , without browser opening. there command can pass terminal overwrite @selenium @javascript
?
you can't run selenium without browser, because selenium works controlling browser.
however, can run cucumber features without using selenium.
if scenario doesn't require javascript can use mechanize:
capybara.default_driver = :mechanize
if need test javascript, thoughtbot have released helpful gem: https://github.com/thoughtbot/capybara-webkit
Comments
Post a Comment