InnerText of components

Is there any way to get the InnerText of a component using Vaadin 14+ ?

If you are talking about a component that implements [HasText]
(https://vaadin.com/api/platform/14.4.5/com/vaadin/flow/component/HasText.html), then it should have a getText() method.