BDD with PageObject

Create child page - wish list page

And "wish_list.rb":

touch wish_list.rb

alt text

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

class WishList < Page

def addToShoppingCartFromWishList
    clickElementBy("xpath", "//a[@class=\"a-button-text a-declarative\"]")
end

end

alt text

alt text