Relative Locators provides the opportunity to find elements based on their relative location on the page from a root elelemt.
Selenium 4 reintroduced Relative Locators which was previously known as Friendly Locators. The core concept behind this method is to allow users to find elements based on how one would describe them on a page incase it is easier to describe spatially where the element is in relation to an element that does have an constructed locator.
The available locators are:
above
below
toLeftOf
toRightOf
near