title: How to access the value of Angular's moment picker with Selenium and Python?
body: <p>I have a web page with an <a href="http://indrimuska.github.io/angular-moment-picker/" rel="nofollow noreferrer">Angular moment picker</a> to show a time. Using <a href="http://selenium-python.readthedocs.io/" rel="nofollow noreferrer">Selenium and Python</a> I want to assert that a specific time is set in the picker's input field. </p>
  
  <p>I tried to check if the time occurs in the page source using <code>assert '13:19' in driver.page_source</code> but this statement fails because the time value is not included in the DOM. </p>
  
  <p>How to access this value of the input field from a Selenium with Python script?</p>
  
  <p>This is the HTML of the picker:</p>
  
  <pre><code>&lt;input type="text" id="observation-timedate" ng-disabled="readOnly"
   ng-class="{'time-picker-timeDate': !readOnly}" readonly="true"
   class="input-block-level ng-valid ng-isolate-scope moment-picker-input 
   ng-valid-min-date ng-valid-max-date time-picker-timeDate ng-not-empty 
   ng-dirty ng-valid-parse ng-touched"
   ng-model="action.observationTime" format="LT"
   moment-picker="observationTimeDate"
   tabindex="0"
   aria-invalid="false"
   style=""&gt;
  </code></pre>