https://www.gcreddy.com/2021/04/selenium-syllabus.html
HTML Basics for Selenium
HTML Basics
1. Web/HTML Elements, Frames, Media, etc,
2. Element Locators and Attributes
3. Actions on Elements
4. HTML Document
i. Editor (Notepad) and Launcher (Browser)
ii. Tags (h1, h2, h3, h4, h5, h6, p, body, table, input, button, a, img, etc,)
iii. Integrating 'Script' components (Ex: JavaScript)
iv. Enhancing Web UI (CSS, Flash objects, etc,)
What is HTML?
HTML stands for HyperText Markup Language
HTML is the standard markup language for creating Web pages
Why HTML for Selenium?
Selenium performs Test steps based on Web/HTML elements, so Software Testers need to familiar with HTML
HTML Concepts
Editor (Ex: Notepad) for writing HTML documents.
Browser for displaying and navigating web pages.
JavaScript for inserting script components into HTML...
CSS for enhancing web pages
HTML tags - Ex: h1, h2, h3, h4, h5, h6, p, table, tr, td, img, a, input, button, etc,
Web Elements / HTML Elements and Actions
1. Text Link – It Redirects
2. Edit box – It takes Input
3. Button – It submits
4. Text box – It takes Input
5. Text – Display
6. Text Area – It takes Input
7. Image – Display
8. Image Link – It Redirects
9. Image Button – It submits
10. Dropdown box – Select an Item
11. Combo box – Select an Item / Enter an Item (Dropdown box + Edit Box)
12. List box – Select one or more items
13. Radio Button – Select an option
14. Check box – Check/Uncheck an option
15. Web Table/HTML Table – It displays data in a tabular format
16. Frame – A section of a Web page
17. Text/Error message/Help message/confirmation message, etc., – Is for providing information
(h1, h2, h3, h4, h5, h6, paragraph tags)
Date Picker
Mouse hover
Inline elements –
Etc.,
Selenium Supported Element Locators
1. id()
2. name()
3. className()
4. tagName()
5. linkText()
6. partialLinkText()
7. cssSelctor()
8. xpath()
HTML Attributes