title: How to scroll/swipe in Appium tests using Python?
body: <p>I am trying to scroll / swipe from ft. to m. in my Appium with Python test.
  Accessibility id for feet is <code>ft.</code> and for metric is <code>m.</code></p>
  <p>Here is the code snippet I am trying to use to do this but the <code>ft.</code> doesn't switch to <code>m.</code></p>
  <pre><code>WebDriverWait(driver, 20).until(EC.presence_of_element_located((By.ACCESSIBILITY_ID, &quot;ft.&quot;)))
  start = driver.find_element_by_accessibility_id(&quot;ft.&quot;)
  time.sleep(1)
  WebDriverWait(driver, 20).until(EC.presence_of_element_located((By.ACCESSIBILITY_ID, &quot;m.&quot;)))
  end = driver.find_element_by_accessibility_id(&quot;m.&quot;)
  time.sleep(1)
  TouchAction(driver).press(start).move_to(end).release().perform()
  </code></pre>
  <p><a href="https://i.stack.imgur.com/tFAAL.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/tFAAL.png" alt="enter image description here" /></a></p>
  <p>How can I change it to m.? (In the picture below I have played with the swipe but I can't be dependent on the coordinates)</p>