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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.