In this chapter we are going to be looking at how we go about finding elements on the page using the WebDriver API. One of the things that we learnt in the previous chapter was that WebDriver, due to its architecture, has two major components. The first one is the "driver". This has the commands to find the elements.
We will start by having a look at the different commands. We begin with the helper commands first and then go to the more generic commands which take different types of objects. We will finish off the chapter by learning some helpful techniques when interacting with element finding.
First major learning point: