Web driver couldn't find the x icon (Close) I used XPath and Full XPath to locate the x icon. Here's my code so far:
webDriver.FindElement(By.XPath("*[@id='root']/div/div/div[1]/button")).Click();
I copied this *[@id='root']/div/div/div[1]/button
by inspecting the element. The error displayed after running the automation testing is this:
I also tried to use Katalon Studio to check if I could get the XPath, it did generate the XPath, but, once I pasted it, it's not working as well.