Now, it's "item_details.rb":
touch item_details.rb
We need to copy following content to "item_details.rb" and delete them from "base_page.rb".
class ItemDetails < Page
def addToShoppingCart
clickElementBy("name", "submit.add-to-cart")
end
def addToWishList
clickElementBy("id","add-to-wishlist-button-submit")
end
def openWishList
waitForJsOrAjax
clickElementBy("class","w-button-inner")
end
def openShoppingCart
clickElementBy("id","nav-cart")
end
end