Press "Enter" to skip to content

How to find cheap flights with Selenium to save time

Flight search can be a long boring task, it may take hours to manually search for cheap flights. So why not automate it?

Selenium is not just a test automation tool. It’s an automation tool, browser automation. Even if you are not a test automation engineer, you still can benefit from Selenium.

Besides using Selenium at work, to automate web tests, I used it a few times to automate other tasks. I used it to automate job search, so I could execute more job searches every day when I was looking for one. And more recently, I created a project, to automate flights search on Expedia.

I’ve used this framework for years, to save money on flights, and now want to share it with everyone, teach you guys how to use it, so you can also search for cheap flights using Selenium.

I recorded a video and uploaded it to YouTube, to show how to download the framework, and how to use it.

I uploaded this project to GitHub. You can access it using this URL: https://github.com/dimashyshkin/expedia-flight-search

I use Java, Maven, and TestNG, in this project. That’s the combination of tools I used for a long time, to automate things. If you are a java developer or a test automation engineer, you should not have a problem in figuring out how to use this framework.

If you are new to Selenium Webdriver with Java and TestNG, check out my courses. Learn how to create a similar framework, how to use Selenium to automate tests at work, and automate other tedious tasks, outside your QA job.

I will try to improve this project, add more comments to a code, so it’s easier to use it without watching a video. But that’s not a high priority task at the moment.

Also, I’m open to suggestions, how this project can be improved or expended. Maybe you want to contribute too, add a Kayak or Priceline search too? Let me know, you can contact me here.

SUBSCRIBE AND GET FREE XPATH CHEAT SHEET!

We don’t spam! Read our privacy policy for more info.