behat功能启动浏览器但立即关闭

时间:2017-06-15 17:49:00

标签: javascript selenium behat

我在启动浏览器但立即关闭的behat功能上遇到了问题。你能告诉我如何解决这个问题吗?

# features/search.feature
Feature: Search
  In order to see a word definition
  As a website user
  I need to be able to search for a word

  @javascript
  Scenario: Searching for a page that does exist
    Given I am on "/wiki/Main_Page"
    When I fill in "search" with "Behavior Driven Development"
    And I press "searchButton"
    Then I should see "agile software development"

  @javascript
  Scenario: Searching for a page that does NOT exist
    Given I am on "/wiki/Main_Page"
    When I fill in "search" with "Glory Driven Development"
    And I press "searchButton"
    Then I should see "Search results"

0 个答案:

没有答案
相关问题