GPAL - Generally Positive Automation Library v1.0
GPAL The Fluent Automation LIbrary
Loading...
Searching...
No Matches
GenerallyPositive.Browser.IAllowSetAttributeValue Interface Reference
Inheritance diagram for GenerallyPositive.Browser.IAllowSetAttributeValue:
GenerallyPositive.Browser.IAllowSelectorAction GenerallyPositive.Browser.IAllowAfterAnySelector GenerallyPositive.Browser.IAllowAfterAnySelectorExceptWithAll GenerallyPositive.Browser.IAllowAfterImageSelector GenerallyPositive.Browser.IAllowAfterWaitFor GenerallyPositive.Browser.IAllowBrowserActionOrAnySelector GenerallyPositive.Browser.IAllowBrowserSettingsOrSelectorAction GenerallyPositive.Browser.IAllowAllBrowserAndAllSelector GenerallyPositive.Browser.IBrowser GenerallyPositive.Browser.IBrowser GenerallyPositive.Browser.IAllowAfterWaitForAndSizeControl GenerallyPositive.Browser.IAllowCallTemplate GenerallyPositive.Browser.IBrowser GenerallyPositive.Browser.IBrowser GenerallyPositive.Browser.IBrowser GenerallyPositive.Browser.Browser GenerallyPositive.Browser.Browser GenerallyPositive.Browser.IBrowser GenerallyPositive.Browser.IBrowser GenerallyPositive.Browser.Browser GenerallyPositive.Browser.Browser GenerallyPositive.Browser.Browser GenerallyPositive.Browser.Browser GenerallyPositive.Browser.Browser

Public Member Functions

IAllowBrowserActionOrAnySelector SetAttribute (string value)
 Directly sets a DOM attribute on the found element(s) via element.setAttribute(attribute, value), using the attribute name given to the preceding IAllowWithAttribute.WithAttribute call. Uses OttoMagic, Puppeteer or JavaScript depending on the active engine. Hardware automation has no equivalent operation, so it falls back to whichever of Selenium/JavaScript or Puppeteer is configured.

Detailed Description

Definition at line 319 of file Interfaces.cs.

Member Function Documentation

◆ SetAttribute()

IAllowBrowserActionOrAnySelector GenerallyPositive.Browser.IAllowSetAttributeValue.SetAttribute ( string value)

Directly sets a DOM attribute on the found element(s) via element.setAttribute(attribute, value), using the attribute name given to the preceding IAllowWithAttribute.WithAttribute call. Uses OttoMagic, Puppeteer or JavaScript depending on the active engine. Hardware automation has no equivalent operation, so it falls back to whichever of Selenium/JavaScript or Puppeteer is configured.

This is a low-level DOM write, distinct from SendString and FillIn* (see GPAL.WithTypingDelay for that distinction). It does not simulate typing or user interaction, does not honor GPAL.TypingDelay, and does not fire input/change events on its own - follow up with FireChangeEvent if the page needs to react to the new attribute value.

Parameters
valueValue to assign to the attribute
Returns
Fluent interface to write your workflow

Implemented in GenerallyPositive.Browser.Browser.


The documentation for this interface was generated from the following file: