Chapter 38

Object Identification Using CSS Selectors

Cascading Style Sheets (CSS) is a style sheet language that defines the presentation semantics (the look and formatting) of a HTML or XML document. For example, CSS describes fonts, colors, margins, height, width, background images and many other presentation semantics. The purpose of CSS is to separate the presentation information from the markup or content.

CSS defines a list of pattern-matching rules which determine which style is to be applied to elements in the DOM. These patterns are called selectors. If all rules in the pattern are satisfied for a certain element, then the selector matches the element. Browser applies the defined style to the matched element.

UFT uses the same principles ...

Get Agile Automation and Unified Funtional Testing now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.