Beispiel #1
0
        public void EnterValueIntoField(string field)
        {
            var webComponent = new WebComponent(Driver);
            var input        = webComponent.FindFieldByLabel(field);

            input.Click();
        }
Beispiel #2
0
        public void CheckValueInField(string value, string field)
        {
            var webComponent  = new WebComponent(Driver);
            var fieldElement  = webComponent.FindFieldByLabel(field);
            var valueElements = fieldElement.FindDescendants(WebComponent.ByText(value));
            var valueElement  = valueElements.FirstOrDefault(el => el.Displayed && value.Equals(el.Text, StringComparison.CurrentCultureIgnoreCase));

            valueElement.Click();
        }