包含文字

f'//div[contains(text(), "{name}")]'

元素ID

//*[@id="verifyCode"]