Testing_Selenium::assignId
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.
Signature
public function 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