title: Android : Selenium driver.getPageSource() equivalent for android app
body: <p>I build an automation test project for android using <a href="https://code.google.com/p/robotium/" rel="nofollow">Robotium</a>. However, at one point, I am in need to look at the source code of the current app window.</p>
  
  <p>I was wondering if there is any way to access the android app code at particular window (say after filling the search wizard, the application takes us to product search result page and there I need to look for the complete source code). Just like we have it for desktop sites when we use <a href="http://docs.seleniumhq.org/projects/webdriver/" rel="nofollow">Selenium Webdriver</a> and do <code>driver.getPageSource()</code>. </p>
  
  <p>Any other alternative way would also be beneficial.</p>