title: Swipe to flutterKey or flutterText on emulator
body: <p>Hello I test mobile app on emulator in selenium (java). I Was wondering if there is a way to swipe to flutterKey or flutterText? Something like scrollIntoView?
  Right now I'm using swipeUp(), swipeVertical and so on, however depeneds on the case, the element (I refer to by flutterkey or text) on screen is located lower or higher and swipes by percentage and so on does not work well.</p>
  <p>Here are example methods that I currently use to tap buttons/tiles.</p>
  <pre><code>public Page2 tapButtonA() throws Exception {
      setContext(&quot;FLUTTER&quot;);
      driver.executeScript(&quot;flutter:setFrameSync&quot;, false, 30);
      waitForByKey(&quot;ButtonAFlutterKey&quot;);
      clickToElementByKey(&quot;ButtonAFlutterKey&quot;);
      return new Page2(this);
  }
  
  public Page3 tapButtonD() throws InterruptedException {
      setContext(&quot;NATIVE_APP&quot;);
      swipeUp(3);
      setContext(&quot;FLUTTER&quot;);
      waitForByKey(&quot;ButtonDFlutterKey&quot;);
      clickToElementByKey(&quot;ButtonDFlutterKey&quot;);
      return new Page3 (this);
  }
  
  
  public void clickToElementByKey(String locator) {
      setContext(&quot;FLUTTER&quot;);
      driver.executeScript(&quot;flutter:setFrameSync&quot;, false, 30);
      MobileElement el = waitForByKey(locator);
      el.click();
  }
  
  public void clickToElementByText(String locator) {
      setContext(&quot;FLUTTER&quot;);
      driver.executeScript(&quot;flutter:setFrameSync&quot;, false, 30);
      MobileElement el = waitForByText(locator);
      el.click();
  }
  </code></pre>