File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
src/main/java/io/appium/java_client/mac/options Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 2020import io .appium .java_client .remote .options .CanSetCapability ;
2121import org .openqa .selenium .Capabilities ;
2222
23- import java .util .List ;
23+ import java .util .Map ;
2424import java .util .Optional ;
2525
2626public interface SupportsEnvironmentOption <T extends BaseOptions <T >> extends
@@ -33,20 +33,20 @@ public interface SupportsEnvironmentOption<T extends BaseOptions<T>> extends
3333 * the parent process. This capability is only going to be applied if the application
3434 * is not running on session startup.
3535 *
36- * @param arguments E.g. ["--help"].
36+ * @param env E.g. ["--help"].
3737 * @return self instance for chaining.
3838 */
39- default T setEnvironment (List <String > arguments ) {
40- return amend (ENVIRONMENT_OPTION , arguments );
39+ default T setEnvironment (Map <String , String > env ) {
40+ return amend (ENVIRONMENT_OPTION , env );
4141 }
4242
4343 /**
4444 * Get the application environment variables mapping.
4545 *
4646 * @return Application environment mapping.
4747 */
48- default Optional <List < String >> getEnvironment () {
48+ default Optional <Map < String , String >> getEnvironment () {
4949 //noinspection unchecked
50- return Optional .ofNullable ((List < String >) getCapability (ENVIRONMENT_OPTION ));
50+ return Optional .ofNullable ((Map < String , String >) getCapability (ENVIRONMENT_OPTION ));
5151 }
5252}
You can’t perform that action at this time.
0 commit comments