This may sound so simple but why there is no method to find element by its inner text without using xpath? for instance there is an element:
<button>Some Text</button>
and Selenium does not provide any methods to select it by inner text. Something like:
driver.findElement(By.innerText("Some Text");
What is the the other way to find element by inner text? I am well aware of xpath, but I can not use it because of restrictions of the project.