コード例 #1
0
 private RequestProcessor setupTouchAction()
 {
     server.respondTo("POST", "/element", new Dictionary <string, object>  {
         { "ELEMENT", '5' }
     });
     return(server.respondTo("POST", "/touch/perform", null));
 }
コード例 #2
0
 public void FindOneElementTestCase()
 {
     server.respondTo("POST", "/appium/app/complex_find", new Dictionary <string, object>  {
         { "ELEMENT", '5' }
     });
     driver.FindComplex("abc");
 }
コード例 #3
0
        public void CloseTestCase()
        {
            AndroidDriver <IWebElement> driver = new AndroidDriver <IWebElement>(defaultUri, capabilities);

            server.respondTo("DELETE", "/window", null);
            driver.Close();
        }
コード例 #4
0
        public void FindElementByIosUIAutomationTestCase()
        {
            server.respondTo("POST", "/element", new Dictionary <string, object>  {
                { "ELEMENT", '5' }
            });
            IWebElement element = driver.FindElementByIosUIAutomation(".elements()");

            server.clear();
            server.respondTo("GET", "/element/5/attribute/id", "1234");
            element.GetAttribute("id");
        }
コード例 #5
0
        public void FindElementByAccessibilityIdTestCase()
        {
            IOSDriver driver = new IOSDriver(defaultUri, capabilities);

            server.respondTo("POST", "/element", new Dictionary <string, object>  {
                { "ELEMENT", '5' }
            });
            IWebElement element = driver.FindElementByAccessibilityId(".elements()");

            server.clear();
            server.respondTo("GET", "/element/5/attribute/id", "1234");
            element.GetAttribute("id");
        }
コード例 #6
0
        public void FindElementByIosUIAutomationTestCase()
        {
            IOSDriver <IWebElement> driver = new IOSDriver <IWebElement>(defaultUri, capabilities);

            server.respondTo("POST", "/element", new Dictionary <string, object>  {
                
                             {
                    "ELEMENT", '5'
                } 

            });
            IWebElement element = driver.FindElementByIosUIAutomation(".elements()");

            server.clear();
            server.respondTo("GET", "/element/5/attribute/id", "1234");
            element.GetAttribute("id");
        }
コード例 #7
0
        public void ShakeDeviceTestCase()
        {
            IOSDriver <IWebElement> driver = new IOSDriver <IWebElement>(defaultUri, capabilities);

            server.respondTo("POST", "/appium/device/shake", null);
            driver.ShakeDevice();
        }
コード例 #8
0
 public void CloseTestCase()
 {
     server.respondTo("DELETE", "/window", null);
     driver.Close();
 }
コード例 #9
0
 public void ShakeDeviceTestCase()
 {
     server.respondTo("POST", "/appium/device/shake", null);
     driver.ShakeDevice();
 }