示例#1
0
        public void XTestUsing(string xusing, object[] values)
        {
            string url = string.Format("{0}/{1}", BaseURL, xusing);

            WebDriver.Navigate().GoToUrl(url);
            string expectedUrl = string.Format("{0}/using?ReturnUrl=", BaseURL);

            Assert.IsTrue(WebDriver.Url.Contains(expectedUrl));
            if (XEntryType != null)
            {
                XMethodInfoTest xmethodTest = new XMethodInfoTest()
                {
                    XMethodInfo = XEntryMethod
                };
                xmethodTest.XTestInvoke(values);
                Assert.IsTrue(WebDriver.Url.Contains(url));
            }
            else
            {
                XTestUsingNoEntryType();
            }
            XReturnTest xtest = new XReturnTest();

            xtest.XTestReturn();
        }
示例#2
0
        protected void XTestUsingEntryMethod(object[] values, string interact)
        {
            XMethodInfoTest xtest = new XMethodInfoTest
            {
                XMethodInfo = XEntryMethod
            };

            if (interact == "")
            {
                xtest.XTestInvoke(values);
            }
            else if (interact == "tabindex")
            {
                xtest.XTestInvoke_TabIndex(values);
            }
            else if (interact == "accesskey")
            {
                xtest.XTestInvoke_AccessKey(values);
            }
        }