File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -671,9 +671,13 @@ class AndroidUiautomator2Driver
671
671
...caps ,
672
672
...sessionInfo ,
673
673
} ;
674
- // Adding AUT package name in the capabilities if package name not exist in caps
675
- if ( ! capsWithSessionInfo . appPackage && appInfo ) {
676
- capsWithSessionInfo . appPackage = appInfo . appPackage ;
674
+ // Adding AUT info in the capabilities if it does not exist in caps
675
+ if ( appInfo ) {
676
+ for ( const capName of [ 'appPackage' , 'appActivity' ] ) {
677
+ if ( ! capsWithSessionInfo [ capName ] && appInfo [ capName ] ) {
678
+ capsWithSessionInfo [ capName ] = appInfo [ capName ] ;
679
+ }
680
+ }
677
681
}
678
682
679
683
await this . performSessionExecution ( capsWithSessionInfo ) ;
Original file line number Diff line number Diff line change 57
57
},
58
58
"dependencies" : {
59
59
"appium-adb" : " ^12.7.3" ,
60
- "appium-android-driver" : " ^9.14.7 " ,
60
+ "appium-android-driver" : " ^9.14.9 " ,
61
61
"appium-uiautomator2-server" : " ^7.0.24" ,
62
62
"asyncbox" : " ^3.0.0" ,
63
63
"axios" : " ^1.6.5" ,
You can’t perform that action at this time.
0 commit comments