我正在使用MinkZombieDriver的基本功能my node -v 5.2.0,npm -v 3.10.5,mink-zombie-driver v1。 4.0 ..處理事件'點擊'時出錯:「SyntaxError:意外的令牌u n
behat.yml默認:
extensions:
Behat\MinkExtension:
base_url: 'https://example.com'
javascript_session: zombie
zombie:
node_modules_path: '/home/ubuntu/node_modules'
goutte: ~
路徑: 特徵:設有 自舉:%behat.paths.features%/自舉
我寫了簡單的功能,它是給貝哈特\水貂\異常\ DriverException
@javascript
方案:查看產品指定專賣店
Given I am on "/index.php" # FeatureContext::visit()
When I fill in "Username" with "hello" # FeatureContext::fillField()
When I fill in "Password" with "123" # FeatureContext::fillField()
And I should see "Manage Your Accounts" # FeatureContext::assertPageContainsText()
When I press "login_button" # FeatureContext::pressButton()
Error while processing event 'click': "SyntaxError: Unexpected token u\n at Object.parse (native)\n
我搜索的網頁,但不知道如何解決。我仍然使用基本的默認功能。我知道問題是與JSON解析..我不知道我在做什麼錯了?我期待着您的任何建議..謝謝..
看看這有助於https://github.com/Behat/MinkExtension/issues/219它應該幫助。 – lauda