Element Info & Attributes

Is Enabled

Determines whether an element exists and is not disabled, returning true if it can accept user interaction.

Examples

GPAL Fluent: High-level fluent C# API

bool isEnabled = gPalElement.IsEnabled

MagicHelper: MagicHelper utility library

GPAL.MagicHelper.IsEnabled(string css);

GPAL.MagicHelper.IsEnabled(string xpath);

Puppeteer Client: Puppeteer-style C# client

browser.PuppeteerClient.IsEnabled(string css).Execute();

browser.PuppeteerClient.IsEnabled(string xpath).Execute();

Puppeteer Communicator: Low-level communicator

await browser.PuppeteerCommunicator.IsEnabled(string elementId, string sessionId);

REST Client: Direct REST/HTTP client

GPAL.OttoMagicClient.WithEndpoint(ApiEndpoint.IsEnabled).WithCss(string css).Execute();

GPAL.OttoMagicClient.WithEndpoint(ApiEndpoint.IsEnabled).WithXPath(string xpath).Execute();

💬 Ask GPAL