Exemplo n.º 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;
 }
Exemplo n.º 2
0
        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)}
				};
        }
Exemplo n.º 3
0
 public ContainerWebElement(string identifier, BasePage parentPage, ContainerType containerType = ContainerType.Element, ContainerWebElement container = null)
     : base(identifier, parentPage, null, containerType, container)
 {
     Type = containerType;
     WindowName = null;
 }