title: Pywinauto - how to get the 'value' property of an element (progress bar) which will dynamically changing
body: <p>Am trying to automate wpf application backend=uia, for progress bar i need to get the dynamically changing &quot;value&quot; attribute, but when i used window_text() am getting '',then i tried to pass the control in this wrapper <code>pywinauto.application.controls.uia_controls.UIAElementInfo(ctrl).name</code> getting this error <code>TypeError(&quot;UIAElementInfo object can be initialized &quot; + \ &quot;with integer or IUIAutomationElement instance only!</code>) and finally tried to pass the element in the following Progresswrapper class <code>pywinauto.controls.common_controls.ProgressWrapper(element_info).get_position()</code> am getting element_info should be hwndwrapper.</p>
  <p><img src="https://i.stack.imgur.com/eeytN.png" alt=" " /></p>
  <p>this is my code app.py</p>
  <ol>
  <li><p>start the app.exe</p>
  <pre><code>app = pywinauto.application.Application(backend='uia').start('app.exe')
  </code></pre>
  </li>
  <li><p>identifying the window</p>
  <pre><code>wind = app.window(auto_id=&quot;someid&quot;)
  </code></pre>
  </li>
  <li><p>finding the progress bar control</p>
  <pre><code>ctrl = wind.window(auto_id='progress') 
  </code></pre>
  </li>
  <li><p>getting the text of the control progress bar</p>
  <pre><code>ctrl.window_text()
  </code></pre>
  </li>
  </ol>