Navigation

Get Dom Properties

Returns a specified element's key DOM properties.

Returns a specified element's key DOM properties.

Extracts commonly used DOM properties from the element—such as text content, HTML structure, class name, and disabled state—and returns them as a simplified object when those properties are available.

Examples

GPAL Fluent: High-level fluent C# API

var domProperties = gPalElement.DomProperties()

MagicHelper: MagicHelper utility library

GPAL.MagicHelper.GetDomProperties(string css); GPAL.MagicHelper.GetDomProperties(string xpath);

Puppeteer Client: Puppeteer-style C# client

browser.PuppeteerClient.GetDomProperties(string css).Execute(); browser.PuppeteerClient.GetDomProperties(string xpath).Execute();

Puppeteer Communicator: Low-level communicator

await browser.PuppeteerCommunicator.GetDomProperties(string selector, string sessionId);

REST Client: Direct REST/HTTP client

GPAL.OttoMagicClient.WithEndpoint(ApiEndpoint.GetDomProperties).WithCss(string css).Execute(); GPAL.OttoMagicClient.WithEndpoint(ApiEndpoint.GetDomProperties).WithXPath(string xpath).Execute();