Ejemplo n.º 1
0
        /// <summary>
        /// Sets the colors combo-box selected item to the specified item..
        /// </summary>
        /// <param name="expectedItem">
        /// The expected item.
        /// </param>
        /// <returns>
        /// The <see cref="ListBoxPage"/>.
        /// </returns>
        public ListBoxPage SetColorItem(string expectedItem)
        {
            ListBox listBox = this.WindowsApp.FindElement(this.colorListBox);

            listBox.ClickItem(expectedItem);
            return(this);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Selects a suggestion from the auto-suggest box.
        /// </summary>
        /// <param name="value">The initial value to set.</param>
        /// <param name="suggestion">The suggestion to select.</param>
        public void SelectSuggestion(string value, string suggestion)
        {
            this.SetText(value);

            this.VerifyElementShown(this.listBoxQuery, TimeSpan.FromSeconds(2));

            ListBox suggestionList = this.Element.FindElement(this.listBoxQuery);

            suggestionList.ClickItem(suggestion);
        }