I want to locate the image tag in a webpage. The application contains a VIEW ICON. While inspecting the view icon, it is coded as image tag. I am not s
image
You image doesn't have the "user-view-icon" CSS class assigned and XPath doesn't work.
you could do:
WebElement image = driver.findElement(By.cssSelector("svg.user-dropdown-icon > image"));