InterviewSolution
| 1. |
How Does Sahi Identify Elements? |
|
Answer» Javascript exposes a lot of ATTRIBUTES in the DOM. DOM is the programmatic HIERARCHICAL representation of the HTML structure in a page. Sahi uses any of the element’s DOM attributes to IDENTIFY elements. For example, a button MAY be identified by the visible text, id, name, css className etc. Sahi’s Controller shows all the IDENTIFICATION alternatives that are possible for an element. Javascript exposes a lot of attributes in the DOM. DOM is the programmatic hierarchical representation of the HTML structure in a page. Sahi uses any of the element’s DOM attributes to identify elements. For example, a button may be identified by the visible text, id, name, css className etc. Sahi’s Controller shows all the identification alternatives that are possible for an element. |
|