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

com.axway.ats.uiengine.internal.driver.SwingDriverInternal Maven / Gradle / Ivy

/*
 * Copyright 2017 Axway Software
 * 
 * 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 com.axway.ats.uiengine.internal.driver;

import org.fest.swing.fixture.ContainerFixture;
import org.fest.swing.fixture.WindowFixture;

import com.axway.ats.uiengine.SwingDriver;

/**
 * ATS Internal Might be changed at any time
 * Class to hide non-public methods
 */
public class SwingDriverInternal extends SwingDriver {

    public SwingDriverInternal( Class mainClassOfTestedApplication ) {

        this( mainClassOfTestedApplication, null );
    }

    /**
     *
     * @param mainClassOfTestedApplication the class containing the "main" method
     * @param windowTitile the window title
     */
    public SwingDriverInternal( Class mainClassOfTestedApplication,
                                String windowTitile ) {

        super( mainClassOfTestedApplication, windowTitile );
    }

    /**
    *
    * @param windowTitile the window title
    */
    public SwingDriverInternal( String windowTitile ) {

        super( windowTitile );
    }

    /**
    *
    * @param jnlpLocation JNLP location. It can be local JNLP file path or a remote url
    * @param cacheEnabled whether the JNLP is cached or not
    */
    public SwingDriverInternal( String jnlpLocation,
                                boolean cacheEnabled ) {

        super( jnlpLocation, cacheEnabled );
    }

    /**
     * Internal method. Might be changed at any time.
     * Should not be used from tests
*/ public WindowFixture getWindowFixture() { return windowFixture; } /** * Internal method. Might be changed at any time. * Should not be used from tests
* Affects current container to search too. */ public void setWindowFixture( WindowFixture windowFixture ) { // changes current container to search too this.windowFixture = windowFixture; this.currentContainer = windowFixture; } /** * Internal method. Might be changed at any time. * Should not be used from tests
*/ public ContainerFixture getActiveContainerFixture() { return currentContainer; } /** * Internal method. Might be changed at any time. * Should not be used from tests
* Changes current container as context to search for elements */ public void setActiveContainerFixture( ContainerFixture containerFixture ) { this.currentContainer = containerFixture; } public String getMainWindowTitle() { return windowTitle; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy