A tutorial on XPATH can be found [https://www.w3schools.com/xml/xpath_intro.asp here].
===Javascript===
If you are familiar with Javascript, you can inject Javascript into the driver to envoke certain behaviors. Simply use:
driver.execute_script(someJavascriptCode)
For example, the following could be used to scroll to the bottom of the page:
driver.execute_script("window.scrollTo(0, document.body.scrollHeight);")