Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright (C) 2008 Ovea <> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
package org.testatoo.core.component;
import static org.testatoo.core.ComponentType.ComboBox;

This class allows the testing of ComboBox properties. The ComboBox is a combination of a DropDown and a TextField, allowing the user to either type a value directly into the textField or choose an option from the DropDown.

public class ComboBox extends ListModel implements SimpleSelectableLabelSupport {

Class constructor specifying the evaluator to use and the id of the comboBox we want to test. The constructor checks if the given id does correspond to a comboBox.

evaluator a technology specific evaluator
id the id (unique) of the comboBox
    public ComboBox(Evaluator evaluatorString id) {

    public String selectedValue() {
        return listSelectedValues().get(0);

    public String label() {
        return .label(this);


See also:
    public String toString() {
        return super.toString() + ", label:" + label();
New to GrepCode? Check out our FAQ X