title: iOS UI Test: Get image filename (Swift)
body: <p>My question is about getting the filename of image of the <code>UIImage</code> that is used in a <code>UIImageView</code>.</p>
  
  <p>Here is my sample code:</p>
  
  <pre><code>// Using image from UIImageObject
  imageView1.image = myUIImage
  // Using image from XAssets
  imageView2.image = UIImage(named: "myImageName")
  </code></pre>
  
  <p>In UI Tests, how can I get the name of the image file?
  The expected resoult would be:</p>
  
  <pre><code>"myUImageObject" // For imageView1 
  "myImageName" // For imageView2
  </code></pre>
  
  <p>Is there any way to get this value?</p>
  
  <p>Thanks everyone!</p>