Click or drag to resize
Ranorex

WebElementSetStyle Method

Sets a CSS style attribute of an element (by name).

Namespace:  Ranorex
Assembly:  Ranorex.Plugin.Web (in Ranorex.Plugin.Web.dll) Version: 12.7.4-git.38314c06
Syntax
public virtual void SetStyle(
	string name,
	string value
)

Parameters

name
Type: SystemString
The name of the style.
value
Type: SystemString
The value to set the style to.
Exceptions
ExceptionCondition
ActionFailedExceptionThrown if invoking the action failed.
See Also