We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 74480ae commit 884c0bcCopy full SHA for 884c0bc
lib/commands/device/common.js
@@ -130,10 +130,10 @@ export async function getDeviceInfoFromCaps() {
130
* @property {(AndroidDriverOpts & {emPort?: number})?} [opts=null]
131
* @returns {Promise<import('appium-adb').ADB>}
132
*/
133
-export async function createADB(opts = null) {
+export async function createADB() {
134
// @ts-expect-error do not put arbitrary properties on opts
135
- const {udid, emPort} = opts ?? {};
136
- const adb = await createBaseADB(opts);
+ const {udid, emPort} = this.opts ?? {};
+ const adb = await createBaseADB(this.opts);
137
adb.setDeviceId(udid ?? '');
138
if (emPort) {
139
adb.setEmulatorPort(emPort);
0 commit comments