How to retrieve Toolbar Title in Android?

I have try FindElementById to get the toolbar and use getText, but it always return an empty string.
I have tried getTitle but it throw a not implemented error.
I have tried getAttribute with “title” but ir doesn’t work as well.
Anyone have any idea how I can retrieve the ToolBar title for testing?


if you are sure that the id of the toolbar is correct, then try to use getAttribute with “name”. this one always give me the text of an element

GetAttribute(“name”) also doesn’t work on Android tool bar :frowning: