Beispiel #1
0
        /// <summary>
        ///     Select item contained inside ComboBox by clicking on it with the cursor
        /// </summary>
        /// <param name="itemText">Item text</param>
        /// <param name="shouldVerify">Indicate whether or not to verify</param>
        public void ClickItemWithText(string itemText, bool shouldVerify = false)
        {
            ReportActionValue("ClickItemWithName", itemText);

            var listItemFound = FindItemWithText(itemText);

            listItemFound.Click();

            if (shouldVerify)
            {
                var friendlyMessage = ConstructFriendlyMessage(Resources.FriendlyComboBoxSelectMsg, itemText);
                QAAssert.IsTrue(QAListItem.GetParent(listItemFound, string.Empty).IsSelected, friendlyMessage);
            }
        }
Beispiel #2
0
        public void GetElement()
        {
            var button = QAButton.Get(@"//button[contains(@Name,'FILE')]", "Button FILE");

            QAAssert.IsTrue(button.Exists);
        }