When I start my code on IntelliJ it shows my capabilities, but doesn’t show the clicks or anything. Does anyone know how to fix?
My Code clicks:
driver.manage().timeouts().implicitlyWait(15, TimeUnit.SECONDS);
//WebElement element = driver.findElement(By.id("red"));
//element.click();
//Wait wait = new WebDriverWait(driver, 10);
//wait.until(ExpectedConditions.elementToBeClickable(By.id(begin)));
//driver.findElement(By.id(red)).click();
//Thread.sleep(5000);
if (!driver.findElement(By.id(begin)).isDisplayed()) {
driver.findElement(By.id(begin)).click();
}else{
driver.findElementByAndroidUIAutomator(red).click();
}
TERMINAL:
[debug] [BaseDriver] Event ‘newSessionRequested’ logged at 1522354710849 (15:18:30 GMT-0500 (CDT))
[Appium] Merged W3C capabilities {“desiredCapabilities”:{“app”:"/home/sonic/Docu… into desiredCapabilities object {“app”:"/home/sonic/Documents/Automation/Sonic…
[Appium] Creating new AndroidDriver (v1.37.0) session
[Appium] Capabilities:
[Appium] app: /home/sonic/Documents/Automation/Sonic.apk
[Appium] appActivity: com.sonic.sonicdrivein.ui.screen.splash.SplashActivity
[Appium] appPackage: com.sonic.sonicdrivein.debug
[Appium] deviceName: Android Emulator
[Appium] platformName: android
[BaseDriver] Session created with session id: 130b5409-081d-4fe7-9460-cc0b33992d5d
[debug] [AndroidDriver] Getting Java version
[AndroidDriver] Java version is: 1.8.0_161
[ADB] Checking whether adb is present
[ADB] Using adb from /home/sonic/Android/Sdk/platform-tools/adb
[AndroidDriver] Retrieving device list
[debug] [ADB] Trying to find a connected android device
[debug] [ADB] Getting connected devices…
[debug] [ADB] 1 device(s) connected
[AndroidDriver] Using device: emulator-5554
[ADB] Checking whether adb is present
[debug] [ADB] Setting device id to emulator-5554
[BaseDriver] Using local app ‘/home/sonic/Documents/Automation/Sonic.apk’
[debug] [AndroidDriver] Checking whether app is actually present
[AndroidDriver] Starting Android session
[debug] [ADB] Running ‘/home/sonic/Android/Sdk/platform-tools/adb’ with args: ["-P",5037,"-s",“emulator-5554”,“wait-for-device”]
[debug] [ADB] Getting connected devices…
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running ‘/home/sonic/Android/Sdk/platform-tools/adb’ with args: ["-P",5037,"-s",“emulator-5554”,“shell”,“echo”,“ping”]
[AndroidDriver] setDeviceLanguageCountry requires language or country.
[AndroidDriver] Got language: ‘null’ and country: ‘null’
[debug] [Logcat] Starting logcat capture
[debug] [AndroidDriver] Pushing settings apk to device…
[debug] [ADB] Getting install status for io.appium.settings
[debug] [ADB] Getting connected devices…
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running ‘/home/sonic/Android/Sdk/platform-tools/adb’ with args: ["-P",5037,"-s",“emulator-5554”,“shell”,“pm”,“list”,“packages”,“io.appium.settings”]
[debug] [ADB] App is installed
[debug] [ADB] Getting package info for io.appium.settings
[debug] [ADB] Getting connected devices…
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running ‘/home/sonic/Android/Sdk/platform-tools/adb’ with args: ["-P",5037,"-s",“emulator-5554”,“shell”,“dumpsys”,“package”,“io.appium.settings”]
[ADB] Checking whether aapt is present
[ADB] Using aapt from /home/sonic/Android/Sdk/build-tools/27.0.3/aapt
[debug] [ADB] The installed ‘io.appium.settings’ package does not require upgrade (5 >= 5)
[debug] [ADB] Getting connected devices…
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running ‘/home/sonic/Android/Sdk/platform-tools/adb’ with args: ["-P",5037,"-s",“emulator-5554”,“shell”,“getprop”,“ro.build.version.sdk”]
[debug] [ADB] Current device property ‘ro.build.version.sdk’: 27
[debug] [ADB] Device API level: 27
[debug] [ADB] Getting connected devices…
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running ‘/home/sonic/Android/Sdk/platform-tools/adb’ with args: ["-P",5037,"-s",“emulator-5554”,“shell”,“dumpsys”,“package”,“io.appium.settings”]
[debug] [ADB] Getting connected devices…
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running ‘/home/sonic/Android/Sdk/platform-tools/adb’ with args: ["-P",5037,"-s",“emulator-5554”,“shell”,“pm”,“dump”,“io.appium.settings”]
[debug] [ADB] Got the following command chunks to execute: pm,grant,io.appium.settings,android.permission.WRITE_SETTINGS,;,pm,grant,io.appium.settings,android.permission.ACCESS_MOCK_LOCATION,;
[debug] [ADB] Getting connected devices…
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running ‘/home/sonic/Android/Sdk/platform-tools/adb’ with args: ["-P",5037,"-s",“emulator-5554”,“shell”,“pm”,“grant”,“io.appium.settings”,“android.permission.WRITE_SETTINGS”,";",“pm”,“grant”,“io.appium.settings”,“android.permission.ACCESS_MOCK_LOCATION”,";"]
[debug] [ADB] Running ‘/home/sonic/Android/Sdk/platform-tools/adb’ with args: ["-P",5037,"-s",“emulator-5554”,“shell”,“pm”,“grant”,“io.appium.settings”,“android.permission.WRITE_SETTINGS”,";",“pm”,“grant”,“io.appium.settings”,“android.permission.ACCESS_MOCK_LOCATION”,";"]
[debug] [ADB] Getting connected devices…
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running ‘/home/sonic/Android/Sdk/platform-tools/adb’ with args: ["-P",5037,"-s",“emulator-5554”,“shell”,“ps”]
[debug] [ADB] Device API level: 27
[debug] [ADB] Getting connected devices…
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running ‘/home/sonic/Android/Sdk/platform-tools/adb’ with args: ["-P",5037,"-s",“emulator-5554”,“shell”,“am”,“start”,"-W","-n",“io.appium.settings/.Settings”,"-a",“android.intent.action.MAIN”,"-c",“android.intent.category.LAUNCHER”,"-f",“0x10200000”]