BDD with PageObject

Create child page - home page

We will create severals pages accordingly, and put their own methods into them. Such as "home.rb":

touch home.rb

alt text

We need to copy following content to "home.rb" and delete them from "base_page.rb".

class Home < Page

def openSite (site) @driver.get site end


alt text

alt text