Validator.java revision 49eb778a47b1b7630e5f3ec8d02b7e5bed58f7b9
1a139d6e587c8b380be518f20779833541bb8fa5fThanh Le/*
21194ec356a16f3c6dcf408289e36e42c149d6dc8Kevin Jin * Copyright (C) 2013 DroidDriver committers
3a139d6e587c8b380be518f20779833541bb8fa5fThanh Le *
4a139d6e587c8b380be518f20779833541bb8fa5fThanh Le * Licensed under the Apache License, Version 2.0 (the "License");
5a139d6e587c8b380be518f20779833541bb8fa5fThanh Le * you may not use this file except in compliance with the License.
6a139d6e587c8b380be518f20779833541bb8fa5fThanh Le * You may obtain a copy of the License at
7a139d6e587c8b380be518f20779833541bb8fa5fThanh Le *
8a139d6e587c8b380be518f20779833541bb8fa5fThanh Le *      http://www.apache.org/licenses/LICENSE-2.0
9a139d6e587c8b380be518f20779833541bb8fa5fThanh Le *
10a139d6e587c8b380be518f20779833541bb8fa5fThanh Le * Unless required by applicable law or agreed to in writing, software
11a139d6e587c8b380be518f20779833541bb8fa5fThanh Le * distributed under the License is distributed on an "AS IS" BASIS,
12a139d6e587c8b380be518f20779833541bb8fa5fThanh Le * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13a139d6e587c8b380be518f20779833541bb8fa5fThanh Le * See the License for the specific language governing permissions and
14a139d6e587c8b380be518f20779833541bb8fa5fThanh Le * limitations under the License.
15a139d6e587c8b380be518f20779833541bb8fa5fThanh Le */
16a139d6e587c8b380be518f20779833541bb8fa5fThanh Le
171194ec356a16f3c6dcf408289e36e42c149d6dc8Kevin Jinpackage com.google.android.droiddriver.exceptions;
18a139d6e587c8b380be518f20779833541bb8fa5fThanh Le
1949eb778a47b1b7630e5f3ec8d02b7e5bed58f7b9Kevin Jinimport com.google.android.droiddriver.UiElement;
2049eb778a47b1b7630e5f3ec8d02b7e5bed58f7b9Kevin Jin
21a139d6e587c8b380be518f20779833541bb8fa5fThanh Le/**
2249eb778a47b1b7630e5f3ec8d02b7e5bed58f7b9Kevin Jin * Thrown when an element is not visible on screen, therefore cannot be
2349eb778a47b1b7630e5f3ec8d02b7e5bed58f7b9Kevin Jin * interacted with.
24a139d6e587c8b380be518f20779833541bb8fa5fThanh Le */
2579884ac460f8d357c28091ec3f42fe369964b809Kevin Jin@SuppressWarnings("serial")
261194ec356a16f3c6dcf408289e36e42c149d6dc8Kevin Jinpublic class ElementNotVisibleException extends DroidDriverException {
2749eb778a47b1b7630e5f3ec8d02b7e5bed58f7b9Kevin Jin  public ElementNotVisibleException(UiElement element) {
2849eb778a47b1b7630e5f3ec8d02b7e5bed58f7b9Kevin Jin    super("Invisible on screen: " + element);
29a139d6e587c8b380be518f20779833541bb8fa5fThanh Le  }
30a139d6e587c8b380be518f20779833541bb8fa5fThanh Le}
31