コード例 #1
0
        public void SetImmediateValueTestCase()
        {
            server.respondTo("POST", "/element", new Dictionary <string, object>  {
                { "ELEMENT", '5' }
            });
            AppiumWebElement element = (AppiumWebElement)driver.FindElementByIosUIAutomation(".elements()");

            server.clear();
            server.respondTo("POST", "/appium/element/5/value", null);
            element.SetImmediateValue("123");
        }
コード例 #2
0
        public void SetImmediateValueTestCase()
        {
            IOSDriver <IWebElement> driver = new IOSDriver <IWebElement>(defaultUri, capabilities);

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

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

            server.clear();
            server.respondTo("POST", "/appium/element/5/value", null);
            element.SetImmediateValue("123");
        }