BDD with PageObject

Extract the setup and tire down steps into features/support/env.rb

To move the setup and tire down steps

Before do
    @driver = Selenium::WebDriver.for :firefox
end

After do @driver.quit end

into "features/support/env.rb", we need to remove them in "sample.rb". The modified "sample.rb" should look like:

alt text

Add add them into "features/support/env.rb":

cd features

mkdir support

cd support

touch env.rb

alt text