BDD with PageObject

Extract Google URL as a parameter

In "sample.feature", we need to change the step to:

Given I opened "http://www.google.com"

alt text

And in "sample.rb", we need to change the step to:

Given /I opened "(.*?)"/ do |site|
    @driver.get site
end

alt text