Fundamentally, Selenium works with two pieces of information -- the element on a page you want to use and what you want to do with it. This one-two punch will be repeated over and over until you achieve the outcome you want in your application -- at which point you will perform an assertion to confirm that the result is what you intended.
Let's take logging in to a website as an example. With Selenium you would:
- Visit the main page of a site
- Find the login button and click it
- Find the login form's username field and input text
- Find the login form's password field and input text