Types of Elements:
- Button - tagname = tagname usually is button with button name as text
- input/search field - tagname usually is input
- HyperLink - tagname usually is a with attribute href with link name as text
- UI TEXT Display
- Graphs/images
Common Selenium Methods:
- get() - To go to a website
- getTitle() - Returns the title of the page with with tag name “Title”
- getCurrentUrl() - Returns current page url
- getPageSource() - Returns the source code of the page
- getWindowHandle() - Returns current window handle number
- getWindowHandles() - Returns all the window handle numbers
- navigate() - To go back, forward, and refresh page
- switchTo() - To focus the driver to a different frame or window
- manage() - Will be used to change window size
- wait() - To slow down the driver
- findelement() - To locate an element
- findelements() - To locate multiple similar elements
- close() - To close the browser
- quit() - To quit the driver