How would I use the web driver to find an element that is a sort of submenu like this code below. I have tried finding it by its class name like this
driver = new ChromeDriver(@"C:\chromedriver_win32");
driver.FindElement(By.ClassName("{img: '16-member-remove.png")).Click();
And that hasn't worked. if you need any more info just ask, thanks.
This is the buttons html code
<a
href="javascript:setMenuId('EmployViewMenu', '0', 'b532931583354d4890fbd6884835760e', 'EmployViewMenu_MenuIdHiddenField', '1', 'EmployViewMenu_PostbackButton');"
class="{img: '16-member-remove.png'}"
tabindex="0"
img="16-member-remove.png">
New Client
</a>