An NDoc Documented Class Library |

# DefaultSelenium.AssignId Method

Temporarily sets the "id" attribute of the specified element, so you can locate it in the future using its ID rather than a slow/complicated XPath. This ID will disappear once the page is reloaded.

public void AssignId(
string locator,
string identifier
);

#### Parameters

locator
  an element locator pointing to an element
identifier
  a string to be used as the ID of the specified element

#### Implements

ISelenium.AssignId

#### See Also

DefaultSelenium Class | Selenium Namespace