I am trying to scroll to the first visibility of the TEXT_TO_FIND displayed on my screen. But what is happening is that my TEXT_TO_FIND is visible multiple times on the screen(it is a type of schedule, so it is appearing under different dates) so the driver scrolls down to the bottom of the screen.
Any idea to scroll to the first occurrence of the TEXT_TO_FIND?
Currently i am using driver.scrollTo(“TEXT_TO_FIND”);