Don’t capture x icon of this pop up

Please Check this Screenshot

Avoid absolute xpath and read some doc about how to captur xpath from an object. You can also dowload browser extensions like ChroPath and use relative XPath.

Your button //button[@class='close']

ok thank you