Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add custom window title to the SwingDriver.java constructors for jnlp… #46

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 20 additions & 6 deletions uiengine/src/main/java/com/axway/ats/uiengine/SwingDriver.java
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,11 @@ public class SwingDriver extends UiDriver {

/**
*
* @param windowTitile the window title
* @param windowTitle the window title
*/
protected SwingDriver( String windowTitile ) {
protected SwingDriver( String windowTitle ) {

this(null, windowTitile);
this(null, windowTitle);
}

/**
Expand All @@ -81,12 +81,12 @@ protected SwingDriver( Class<?> mainClassOfTestedApplication ) {
/**
*
* @param mainClassOfTestedApplication the class containing the "main" method
* @param windowTitile the window title
* @param windowTitle the window title
*/
protected SwingDriver( Class<?> mainClassOfTestedApplication, String windowTitile ) {
protected SwingDriver( Class<?> mainClassOfTestedApplication, String windowTitle ) {

this.mainClassOfTestedApplication = mainClassOfTestedApplication;
this.windowTitle = windowTitile;
this.windowTitle = windowTitle;
}

/**
Expand All @@ -100,6 +100,20 @@ public SwingDriver( String jnlpLocation, boolean cacheEnabled ) {
this.isJnlpCached = cacheEnabled;
}

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

this.jnlpLocation = jnlpLocation;
this.windowTitle = windowTitle;
this.isJnlpCached = cacheEnabled;
}


@Override
@PublicAtsApi
public void start() {
Expand Down
Loading