How can i get the port on which katalon started appium?
Actually i need it for starting a driver with different set of capabilities at runtime.
Tired RunConfiguration.getPort() ,RunConfiguration.getDriverExecutionProperties(), RunConfiguration ._getExecutionGeneralProperties().
But no use.
Please let me know.
Thanks in advance._
Try this :
// import statement
import com.kms.katalon.core.appium.driver.AppiumDriverManager
// creating an object
AppiumDriverManager appiumDM = new AppiumDriverManager()
// start mobile application
Mobile.startApplication(, )
// Get appium port at runtime
KeywordUtil.logInfo("[APPIUM PORT] " + appiumDM.localStorageAppiumPort.get())
1 Like