I am trying to get the ID of a web element that contains the word 'Search'. After doing some research I got this:
elementid = driver.find_element_by_xpath("//*[contains(text(), 'Search')]").__getattribute__("id")
The ID that should be returning is 'header-search-bar' but I get this: 1f7b49b1-1f8c-4a38-b466-a7eca3d2ff0b
What did I do wrong? What is the meaning of the string that is being returned?