Need to do automation using UC and QQ browser

Hi All,

I need to do automation in cloud devices using UC and QQ browser. However i am not able to do . can anyone please suggest.
Below are desired capabilities which i am using for UC browsers:

               desiredCapabilities.setCapability("deviceName", "XX");// 
               desiredCapabilities.setCapability("udid", "XXX");// 
               desiredCapabilities.setCapability("automationName", "UiAutomator2");
               desiredCapabilities.setCapability("platformName", "Android");
               desiredCapabilities.setCapability("autoAcceptAlerts", true);
               desiredCapabilities.setCapability("appActivity", "com.uc.browser.InnerUCMobile");
               desiredCapabilities.setCapability("appPackage", "");
               desiredCapabilities.setCapability("noReset", true);
               URL remoteUrl = new URL("xxx");

Could you share the full Appium log? (especially error message)
I saw a case in which a UC browser had its own chrome version. Then, the session should have had specific chromedriverExecutable capability

WebDriverWait wait = new WebDriverWait(driver, 10);
By FIRSTNAME = MobileBy.xpath( “// [@name=‘first_name’]");
By LASTNAME = MobileBy.xpath( "//
Set contextNames = driver.getContextHandles();
driver.context((String) contextNames.toArray()[1]);
String context = driver.getContext();
String pageSource = driver.getPageSource();

Below are the webview log for UC browser:

ext:uc:home Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0. Use ‘–warning-mode all’ to show the individual deprecation warnings. See BUILD SUCCESSFUL in 23s 2 actionable tasks: 2 executed 8:33:21 PM: Task execution finished ‘:test --tests “SampleTest.launchSettings”’