try
driver.findElement(By.xpath("//android.widget.TextView[@text=‘Markets’]")).click();
above one should work, if it doesn’t. Then it means that element was unable to found on DOM, so try to put explicit wait before clicking on that element. On other hand to make your code more dynamic you can take the layout of that bottom navigation bar then iterate by no of items and perform you required action(without taking these texts as a reference to the elemnts).