I am new in using selenium web driver. Can you help me which Element should I use? Here is the code.
<a class="btn btn-sm blue" data-toggle="dropdown"> <i class="fa fa-gear"></i> <i class="fa fa-angle-down "></i> </a>
I've already tried the class which is
class="btn btn-sm blue" and its xpath
but none of this has been work.
I commit error whenever I run my script using C# language and it say "IllegalLocatorException". I've tried a lot of classes/xpath/id etc(which I know it doesn't appropriate to use just to work my script). Can somebody help me to solve this?
driver.Manage().Timeouts().ImplicitlyWait(TimeSpan.FromSeconds(10)); IWebElement btnAction = driver.FindElement(By.ClassName("btn btn-sm blue")); btnAction.Click();