title: NativeScript e2e tests - check value fo the switch component
body: <p>I am using NativeScript-Dev-Appium for writing E2E tests for my NativeScript application and I want to access the value of the checked attribute of my Switch component.
  I tried both </p>
  
  <pre><code>UiElement.getAttribute("selected"), UiElement.getAttribute("checked")
  </code></pre>
  
  <p>But it doesnt seem to access those attributes. 
  Appium docs mentions to have incorporated isSelected() function for such elements. </p>
  
  <p><a href="http://appium.io/docs/en/commands/element/attributes/selected/" rel="nofollow noreferrer">http://appium.io/docs/en/commands/element/attributes/selected/</a></p>
  
  <p>This method is not available with this plugin. Is there a way to go about it?</p>