Due to the both way core_element determines the watir_element and the required arguments of an ID Element, the Title of the HTML page cannot be used.
Watir's call of browser.title just directly returns the title string, with no arguments required. Since ID Elements utilize parent.send(@element_type, @locator_hash) and the title needs no locator, we cannot use it.
Unsure if we'd ever really want to use it as a Wait Element, but can't be used there either due to the same effect.
Due to the both way core_element determines the watir_element and the required arguments of an ID Element, the Title of the HTML page cannot be used.
Watir's call of
browser.titlejust directly returns the title string, with no arguments required. Since ID Elements utilizeparent.send(@element_type, @locator_hash)and the title needs no locator, we cannot use it.Unsure if we'd ever really want to use it as a Wait Element, but can't be used there either due to the same effect.