All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.finra.jtaf.ewd.HighlightProvider Maven / Gradle / Ivy

Go to download

ExtWebDriver is an enhancement to the WebDriver API, with features such as widget library, session management and extended functions

There is a newer version: 1.5.6
Show newest version
/*
 * (C) Copyright 2013 Java Test Automation Framework Contributors.
 *
 * 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
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * 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.finra.jtaf.ewd;

import java.util.Map;

/**
 * HighlightProvider is a simple interface meant for ExtWebDriver
 * implementations which support highlighting. Widget classes should check to
 * see if a session is an instance of this interface, and also the value of
 * isHighlight(), before performing highlighting-related operations.
 * 
 */
public interface HighlightProvider {

	/**
	 * Sets whether to highlight elements when performing actions
	 * 
	 * @param isHighlight
	 *            whether to allow highlight
	 */
	public void setIsHighlight(boolean isHighlight);
	
	public void setHighlightColors(Map colors);

	public boolean isHighlight();

	/**
	 * Get the highlight color based on mode
	 * 
	 * @param mode
	 *            the mode for which to get color
	 * @return String the color for the mode
	 */
	public String getHighlightColor(String mode);

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy