I've been a beginner in the world of Javascript for a while now, with my main goal being to use it for creating Selenium automations as part of my journey into QA automation.
However, I find myself quite perplexed when it comes to the language. In all the Selenium documentation and script examples I come across, I see functions like "driver.FindElement", "sendKeys", "getTitle", and so on.
From what I've learned so far, regular Javascript doesn't tend to use these exact functions but rather something along the lines of "document.getElementById", "document.title", and such.
Could someone please shed some light on the language that Selenium uses when it mentions "sendKeys"? Why is it that in all the resources related to Selenium and Javascript, I only encounter "getTitle" instead of "document.title"? Is what I've grasped about pure JS not relevant in this context?
I'm aware that this might seem like a simple question to many, but I feel stuck and unable to progress further in my learning until this confusion is resolved. Thank you!