title: How to locate the x, y coordinates of text on the screen?
body: <p>I am trying to find the x, y coordinates of a web element (part of the web page that's open on screen) and some automated tests using the <code>robotframework</code> are being run on it.</p>
  <p>I'd like to provide the function with the text string, and get (x, y) coordinates returned.</p>
  <p>I am not sure if I can do this in <code>pyautogui</code>.</p>
  <p>Environment: Chrome / OS X</p>
  <p>EDIT:</p>
  <p>I am wondering if I can use <code>locateOnScreen()</code> function in this library to locate text, (but it seems it's only for images according to the <a href="http://pyautogui.readthedocs.io/en/latest/screenshot.html#the-locate-functions" rel="nofollow noreferrer">documentation</a>)?</p>