Ejemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="TestBase" /> class.
 /// </summary>
 /// <param name="item">The item.</param>
 public TestBase(InheritedClass item)
     : base(typeof(InheritedClass), item)
 {
 }
Ejemplo n.º 2
0
        public void TestSetPropertySetsPropertyValue()
        {
            var page = new InheritedClass();
            var target = new TestBase(page);

            IPropertyData data;
            var result = target.TryGetProperty("Name", out data);
            Assert.AreEqual(true, result);

            // Set the property value via the action
            data.FillData("Dan");

            Assert.AreEqual("Dan", page.Name);
        }
Ejemplo n.º 3
0
        public void TestWaitForPageToBeActiveCallsNativeInterfaceNoActionIfMissing()
        {
            var targetClass = new InheritedClass();
            var target = new TestBase(targetClass);

            target.WaitForPageToBeActive();
        }
Ejemplo n.º 4
0
		public void TestCallElementInvoker()
		{
			var page = new InheritedClass { Button = new BaseElement() };

			var target = new TestBase(page);

			IPropertyData property;
			var result = target.TryGetProperty("Button", out property);

			property.ClickElement();

			Assert.IsTrue(result);
		}