public void FromElementTestCase()
 {
     AndroidDriver driver = new AndroidDriver(defaultUri, capabilities);
     server.respondTo ("POST", "/element", new Dictionary<string, object>  {
         {"ELEMENT", '5'}
     });
     AndroidElement element = (AndroidElement) driver.FindElementByAndroidUIAutomator (".elements()");
     server.clear ();
     server.respondTo ("POST", "/element/5/element", new Dictionary<string, object>  {
         {"ELEMENT", '6'}
     });
     element.FindElementByAndroidUIAutomator (".elements()");
     server.clear ();
     List<object> results = new List<object>();
     results.Add (new Dictionary<string, object> {{"ELEMENT", "4"}});
     server.respondTo ("POST", "/element/5/elements", results);
     element.FindElementsByAndroidUIAutomator (".elements()");
 }
 public void FindElementByAndroidUIAutomatorTestCase()
 {
     AndroidDriver driver = new AndroidDriver(defaultUri, capabilities);
     server.respondTo ("POST", "/element", new Dictionary<string, object>  {
         {"ELEMENT", '5'}
     });
     IWebElement element = driver.FindElementByAndroidUIAutomator (".elements()");
     server.clear ();
     server.respondTo ("GET", "/element/5/attribute/id", "1234");
     element.GetAttribute ("id");
 }