BDD with PageObject

Add feature file of Selenium-WebDriver sample

Add one feature file "sample.feature" for Selenium-WebDriver sample under "features" folder.

cd features

touch sample.feature

alt text

Edit "sample.feature" to contain following content:

In order to check the search result
I want to search on Google and check the browser title

Scenario: Check the browser title after search Given I opened Google When I search a keyword Then I should see the browser title

alt text