This project is a Selenium automation script developed in Java to automate the purchase of smartphones on eBay. The script handles the entire buying process, from logging in and searching for a specific smartphone to adding it to the cart and completing the checkout.
- Automated Login: Automatically logs in to eBay using user-provided credentials.
- Item Search: Searches for a specific smartphone based on user-defined criteria.
- Add to Cart: Adds the selected smartphone to the shopping cart.
- Automated Checkout: Completes the checkout process, ensuring a seamless purchase.
- Java Development Kit (JDK)
- Maven
- Selenium WebDriver
- Web browser (Chrome, Firefox, etc.) with corresponding WebDriver
-
Clone the repository:
git clone https://github.com/EmilWijayasekara/Selenium-automation-script-for-ebay-purchase.git cd Selenium-automation-script-for-ebay-purchase`
-
Install dependencies: Ensure you have Maven installed, then run:
mvn install
-
Configure the script: Update the
config.properties
file with your eBay credentials and desired search criteria.
-
Run the script:
mvn test
-
Observe the automation: The script will open a web browser and perform the automated tasks as specified.
- Ensure that the WebDriver path is correctly set in the
config.properties
file. - The script is intended for educational purposes. Be mindful of eBay's terms of service when using automated scripts.