Skip to content

Commit

Permalink
chore(deps): bump appium-xcuitest-driver from 5.6.0 to 5.7.0 in /driv…
Browse files Browse the repository at this point in the history
…er (#595)

* chore(deps): bump appium-xcuitest-driver from 5.6.0 to 5.7.0 in /driver

Bumps [appium-xcuitest-driver](https://github.com/appium/appium-xcuitest-driver) from 5.6.0 to 5.7.0.
- [Release notes](https://github.com/appium/appium-xcuitest-driver/releases)
- [Changelog](https://github.com/appium/appium-xcuitest-driver/blob/master/CHANGELOG.md)
- [Commits](appium/appium-xcuitest-driver@v5.6.0...v5.7.0)

---
updated-dependencies:
- dependency-name: appium-xcuitest-driver
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* chore: fix lint

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Kazuaki Matsuo <[email protected]>
  • Loading branch information
dependabot[bot] and KazuCocoa authored Oct 20, 2023
1 parent 1232e1c commit 9d3251f
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 13 deletions.
3 changes: 2 additions & 1 deletion driver/lib/logger.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { logger } from '@appium/support';
import { AppiumLogger } from '@appium/types';

export const log = logger.getLogger(`FlutterDriver`);
export const log: AppiumLogger = logger.getLogger(`FlutterDriver`);
9 changes: 4 additions & 5 deletions driver/lib/sessions/android.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
import AndroidUiautomator2Driver from 'appium-uiautomator2-driver';
import { log } from '../logger';
import { connectSocket, processLogToGetobservatory } from './observatory';
import { InitialOpts } from '@appium/types';

export const DRIVER_NAME = `UIAutomator2`;
type IsolateSocket = import('./isolate_socket').IsolateSocket;


const setupNewAndroidDriver = async (...args: any[]): Promise<AndroidUiautomator2Driver> => {
const androidArgs = {
javascriptEnabled: true,
};
const androiddriver = new AndroidUiautomator2Driver(androidArgs);
const androiddriver = new AndroidUiautomator2Driver({} as InitialOpts);
// @ts-ignore
await androiddriver.createSession(...args);

return androiddriver;
Expand Down Expand Up @@ -49,7 +48,7 @@ export const getObservatoryWsUri = async (proxydriver: AndroidUiautomator2Driver
return urlObject.toJSON();
}
} else {
urlObject = processLogToGetobservatory(proxydriver.adb.logcat.logs);
urlObject = processLogToGetobservatory(proxydriver.adb.logcat!.logs as [{message: string}]);
}
const remotePort = urlObject.port;
const localPort = caps.forwardingPort ?? remotePort;
Expand Down
7 changes: 2 additions & 5 deletions driver/lib/sessions/ios.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import net from 'net';
import { checkPortStatus } from 'portscanner';
import { log } from '../logger';
import { connectSocket, processLogToGetobservatory } from './observatory';
import { InitialOpts } from '@appium/types';

const LOCALHOST = `127.0.0.1`;
const PORT_CLOSE_TIMEOUT = 15 * 1000; // 15 seconds
Expand All @@ -15,11 +16,7 @@ type IsolateSocket = import('./isolate_socket').IsolateSocket;


const setupNewIOSDriver = async (...args: any[]): Promise<XCUITestDriver> => {
const iosArgs = {
javascriptEnabled: true,
};

const iosdriver = new XCUITestDriver(iosArgs);
const iosdriver = new XCUITestDriver({} as InitialOpts);
await iosdriver.createSession(...args);

return iosdriver;
Expand Down
2 changes: 1 addition & 1 deletion driver/lib/sessions/session.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export const reConnectFlutterDriver = async function(this: FlutterDriver, caps:
}
};

export const createSession = async function(this: FlutterDriver, sessionId: string, caps, ...args) {
export const createSession: any = async function(this: FlutterDriver, sessionId: string, caps, ...args) {
try {
// setup proxies - if platformName is not empty, make it less case sensitive
if (caps.platformName) {
Expand Down
2 changes: 1 addition & 1 deletion driver/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
"appium-android-driver": "^5.2.2",
"appium-ios-device": "^2.4.1",
"appium-uiautomator2-driver": "^2.29.4",
"appium-xcuitest-driver": "5.6.0",
"appium-xcuitest-driver": "5.7.0",
"asyncbox": "^2.3.1",
"bluebird": "^3.1.1",
"lodash": "^4.0.0",
Expand Down

0 comments on commit 9d3251f

Please sign in to comment.