There is a class : com.hackerrank.selenium.PurchaseAutomation.java which has 2 methods: Selenium java: Purchase Automation void makePurchase(String itemsURL, String itemName, WebDriver driver) > browse the items page > select the item itemName >add it to the cart > goto the cart > make a purchase with a click on purchase button void makePayment(String paymentURL,, Card card) > fill the card using card > make payment by clicking Pay button ' > return the server response as string Implement these methods.