title: UIAutomation - Check the message in Alert and compare it with expected message
body: <p>I am working on alerts in UIAutomation. When I encounter an alert, I am supposed to ensure that the alert title and message are the same as expected. I have done this to get access for alert title.</p>
  
  <pre><code>var AlertTitle = target.frontMostApp().alert().name();
  UIALogger.logMessage(AlertTitle);
  </code></pre>
  
  <p>In the similar way, is there any way to retrieve the message in alert ? I have tried using</p>
  
  <pre><code>target.frontMostApp().alert().value(); 
  </code></pre>
  
  <p>but it did not work. I have logged the element tree and got this.</p>
  
  <pre><code>UIAAlert
   |
   UIAImage
   UIAStaticField name: Abc value: ABc
   UIAStaticField name: XYZ value: XYZ
   UIAButton
  </code></pre>
  
  <p>I need to retrieve the value of second UIAStaticField in this alert and compare with expected value. How do I do that ?</p>
  
  <p>I tried doing this but it didn't work.</p>
  
  <pre><code>target.frontMostApp().alert().staticTexts[1]().value();
  </code></pre>