How to get Device name and App Version using Appium Driver
<p>I am able to get the device android version using</p>

<pre><code>driver.getCapabilities().getCapability("platformVersion");
</code></pre>

<p>Simillarly how I will get device name and version of app. I tried with following but no use</p>

<pre><code>driver.getCapabilities().getCapability("deviceName");
driver.getCapabilities().getCapability("appVersion");
</code></pre>