Skip to content
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,7 @@

/**
* WincoreDriver is an officially supported Appium driver created to automate Windows apps.
* It is the successor of the Windows driver, which is deprecated and not supported since Appium 4,
* see {@link io.appium.java_client.windows.WindowsDriver}.
* It is the successor of the Windows driver, which is deprecated and not supported since Appium 4.
* Read https://github.com/appium/appium-wincore-driver for more details.
*/
public class WincoreDriver extends AppiumDriver implements
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package io.appium.java_client.windows.options;
package io.appium.java_client.wincore.options;

import io.appium.java_client.remote.options.SystemScript;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package io.appium.java_client.windows.options;
package io.appium.java_client.wincore.options;

import io.appium.java_client.remote.options.BaseOptions;
import io.appium.java_client.remote.options.CanSetCapability;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package io.appium.java_client.windows.options;
package io.appium.java_client.wincore.options;

import io.appium.java_client.remote.options.BaseOptions;
import io.appium.java_client.remote.options.CanSetCapability;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package io.appium.java_client.windows.options;
package io.appium.java_client.wincore.options;

import io.appium.java_client.remote.options.BaseOptions;
import io.appium.java_client.remote.options.CanSetCapability;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* See the NOTICE file distributed with this work for additional
* information regarding copyright ownership.
* 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 io.appium.java_client.wincore.options;

import io.appium.java_client.remote.options.BaseOptions;
import io.appium.java_client.remote.options.CanSetCapability;
import io.appium.java_client.remote.options.CapabilityReader;
import org.openqa.selenium.Capabilities;

import java.util.Optional;

/**
* Provides getters and setters for the {@code webviewDevtoolsPort} capability.
*
* @param <T> options type, used for chaining.
*/
public interface SupportsWebviewDevtoolsPortOption<T extends BaseOptions<T>> extends
Capabilities, CanSetCapability<T> {
/**
* Name of the {@code webviewDevtoolsPort} capability.
*/
String WEBVIEW_DEVTOOLS_PORT_OPTION = "webviewDevtoolsPort";

/**
* The local port number to use for devtools communication. By default, the first
* free port from 10900..11000 range is selected. Consider setting the custom
* value if you are running parallel tests.
*
* @param port port number in range 0..65535
* @return self instance for chaining.
*/
default T setWebviewDevtoolsPort(int port) {
return amend(WEBVIEW_DEVTOOLS_PORT_OPTION, port);
}

/**
* Get the local port number to use for devtools communication.
*
* @return Port number.
*/
default Optional<Integer> getWebviewDevtoolsPort() {
return new CapabilityReader(this).getInteger(WEBVIEW_DEVTOOLS_PORT_OPTION);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,13 @@

package io.appium.java_client.wincore.options;

import io.appium.java_client.android.options.context.SupportsWebviewDevtoolsPortOption;
import io.appium.java_client.remote.AutomationName;
import io.appium.java_client.remote.MobilePlatform;
import io.appium.java_client.remote.options.BaseOptions;
import io.appium.java_client.remote.options.SupportsAppOption;
import io.appium.java_client.remote.options.SupportsDeviceNameOption;
import io.appium.java_client.remote.options.SupportsPostrunOption;
import io.appium.java_client.remote.options.SupportsPrerunOption;
import io.appium.java_client.windows.options.PowerShellData;
import io.appium.java_client.windows.options.SupportsAppArgumentsOption;
import io.appium.java_client.windows.options.SupportsAppTopLevelWindowOption;
import io.appium.java_client.windows.options.SupportsAppWorkingDirOption;
import org.openqa.selenium.Capabilities;

import java.util.Map;
Expand All @@ -38,8 +33,7 @@
* See <a href="https://github.com/appium/appium-wincore-driver#capabilities">https://github.com/appium/appium-wincore-driver#capabilities</a>
* for more details.
*
* <p>The driver replaces appium-windows-driver, which is deprecated and not supported since Appium 4, see
* {@link io.appium.java_client.windows.options.WindowsOptions}.</p>
* <p>The driver replaces appium-windows-driver, which is deprecated and not supported since Appium 4.</p>
*/
public class WincoreOptions extends BaseOptions<WincoreOptions> implements
SupportsAppOption<WincoreOptions>,
Expand Down
248 changes: 0 additions & 248 deletions src/main/java/io/appium/java_client/windows/WindowsDriver.java

This file was deleted.

Loading
Loading