<span class="title ng-binding">TEST</span>
ı want to click the following. I ve tried lots of ways but did not success. Thanks for your helping.
<span class="title ng-binding">TEST</span>
ı want to click the following. I ve tried lots of ways but did not success. Thanks for your helping.
The desired element is an Angular element so you have to induce WebDriverwait for the desired element to be clickable and you can use either of the following (Java) solutions:
cssSelector:
new WebDriverWait(driver, 20).until(ExpectedConditions.elementToBeClickable(By.cssSelector("span.title.ng-binding"))).click();
xpath:
new WebDriverWait(driver, 20).until(ExpectedConditions.elementToBeClickable(By.xpath("//span[@class='title ng-binding' and contains(.,'TEST')]"))).click();