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.
Namespace: SeleniumAssembly: ThoughtWorks.Selenium.Core (in ThoughtWorks.Selenium.Core.dll) Version: 2.35.0.0 (2.35.0.0)
Syntax
Parameters
- locator
- Type:
System String
an element locator pointing to an element
- identifier
- Type:
System String
a string to be used as the ID of the specified element
See Also