I want to click on Administration panel. The <span>
contains a class attribute and inner text.
I get an error saying "unable to locate element". What am I doing wrong?
HTML:
<div class="item-inner">
<span class="title"> Administration </span>
<i class="icon-arrow"></i>
</div>
C# code
var admi = driver.FindElement(By.XPath("//span[contains(@class,'title')] [contains(text(),'Administration')]"));
admi.Click();