xpath search for divs where the id contains specific text May 1, 2023 by Tarik Use the contains function: //div[contains(@id,'test')]