"The selected node does not have a form ancestor"
<p>I'm testing my PHP / bootstrap application with Behat + Mink. I'm currently trying to use variables to grab from a field with a Scenario Outline.</p>

<p>The website looks like this
<a href="https://i.stack.imgur.com/BBAdn.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/BBAdn.png" alt="enter image description here"></a></p>

<p>My code looks like this 
<strong>in feature file</strong>
    Feature: Stock Portfolio
        In order to see what stocks are owned
        As a user
        I want to display my portfolio</p>

<pre><code>    Scenario: User Is On Home Page
        Given that I am logged in
        When print current URL
        Then I should see "Portfolio"


    Scenario Outline: User Buys Stock
        Given that I am logged in
        And I own &lt;start&gt; "AAPL" stocks
        When I fill in "ticker" with "AAPL"
        And I sell &lt;sell&gt; stock
        Then I should own &lt;finish&gt; "AAPL" stocks

        Examples:
            | start | sell | finish |
            |  13   |  5   |  8     |
            |  10   |  3   |  7     |
</code></pre>

<p><strong>in php file</strong></p>

<pre><code> /**
     * @Then /^I should own (.*) "([^"]*)" stocks$/
     */
    public function iShouldOwnStocks($start, $arg1)
    {
        $this-&gt;assertSession()-&gt;fieldValueEquals($arg1, $start);
    }



    /**
     * @Given /^I sell (.*) stock$/
     */
    public function iSellStock($sell)

    {
        $this-&gt;fillField("quantity", $sell);
    }

    /**
     * @Given /^I own (.*) "([^"]*)" stocks$/
     */
    public function iOwnStocks($start, $arg1)
    {
        $this-&gt;assertSession()-&gt;fieldValueEquals($arg1, $start);

    }
</code></pre>

<p>The error I keep getting is:</p>

<p><a href="https://i.stack.imgur.com/w46P4.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/w46P4.png" alt="Error"></a></p>

<p>I'm not quite sure what's going on here - help would be super appreciated!</p>