Beispiel #1
0
 public WebElement(string identifier, BasePage parentPage, Type nextPage = null, ContainerType? containerType = null, ContainerWebElement parentContainer = null)
 {
     Identifier = identifier;
     ParentPage = parentPage;
     NextPage = nextPage;
     ParentContainer = parentContainer;
     NextPageContainerType = containerType;
 }
        public DropdownWebElement(string identifier, BasePage parentPage, ContainerType? containerType = null, ContainerWebElement container = null)
            : base(identifier, parentPage, null, containerType, container)
        {
            Selector = new Dictionary<SelectionKind, Action<object>>
            {
					{SelectionKind.Text, x => Select.SelectByText((string) x)},
					{SelectionKind.Value, x => Select.SelectByValue((string) x)},
					{SelectionKind.Index, x => Select.SelectByIndex((int) x)}
				};
        }
 public ContainerWebElement(string identifier, BasePage parentPage, ContainerType containerType = ContainerType.Element, ContainerWebElement container = null)
     : base(identifier, parentPage, null, containerType, container)
 {
     Type = containerType;
     WindowName = null;
 }