Click or drag to resize
Ranorex

WebElementGetOrCreateId Method

Returns a unique 'id' attribute for this WebElement. If an id is set, the original value is returned, otherwise the WebElement is assigned a new random id. Use this method to pass elements by id to Javascript code.

Namespace:  Ranorex
Assembly:  Ranorex.Plugin.Web (in Ranorex.Plugin.Web.dll) Version: 12.7.4-git.38314c06
Syntax
public string GetOrCreateId()

Return Value

Type: String
The unique 'id' of this WebElement.
See Also