Katalon Studio Free v10.1.0
Framework cucumber
Appium 2.15.0
Android emulator API 35 and chrome version 128
Chromedriver 128.0.6613.84
Capabilities:
appPackage
noReset true
chromedriverPort
appWaitActivity
uiautomator2ServerlaunchTimeout 60s
deviceName
fullReset false
appActivity
newCommandTimeout
platformVersion
automationName uiautomator2
autoGrantPermissions true
forceAppLaunch
platformName
shouldTerminateApp true
Code extract:
<Set contextNames = ((SupportsContextSwitching) driver).getContextHandles()
for (String contextName : contextNames) {
System.out.println(contextName)
}
Mobile.comment("Switch to Webview")
((SupportsContextSwitching) driver).context(contextNames.toArray()[1])
/>
Error:
Set chromedriver binary as: C:\Users\username.appium\node_modules\appium-uiautomator2-driver\node_modules\appium-chromedriver\chromedriver\win\chromedriver.exe
No old chromedrivers seem to exist
Spawning chromedriver with: C:\Users\username.appium\node_modules\appium-uiautomator2-driver\node_modules\appium-chromedriver\chromedriver\win\chromedriver.exe --port=63085 --adb-port=5037 --verbose
Set ChromeDriver communication protocol to W3C
connect ECONNREFUSED 127.0.0.1:63085
Starting W3C Chromedriver session with capabilities: {
“capabilities”: {
“alwaysMatch”: {
“goog:chromeOptions”: {
“androidPackage”: “com.app.online.env”,
“androidUseRunningApp”: true,
“androidProcess”: “com.app.online.env”,
“androidDeviceSerial”: “emulator-5554”
},
“goog:loggingPrefs”: {
“browser”: “ALL”
}
}
}
}
2nd issue: 1 out of 2 times, we are having Failed to start appium in 30 seconds.