Problems using scroll_to and scroll_to_exact (Ruby and Android)

Hi @sdubov,

I liberated this code from the appium source. In our case, we don’t search by description, so

def scroll_to text
# This is a workaround for Appium issue 4311,
# It can and should be replaced by the following when the issue is resolved
# appium.driver.scroll_to text
text = %Q("#{text}")
args = appium.scroll_uiselector(“new UiSelector().text(#{text})”)
appium.driver.find_element :uiautomator, args
end