Elements are not interacting with the Android Mobile Firefox browser

Hello ,
We have a scenario to launch the AUT(Application Under Testing) in Mobile Android Firefox browser by using the Katalon Studio. To do this we have tried with the DesiredCapabilites as follows

DesiredCapabilities capabilities = new DesiredCapabilities();
capabilities.setCapability(“platformName”, “Android”);
capabilities.setCapability(“platformVersion”, “9.0”);
capabilities.setCapability(“appPackage”, “org.mozilla.firefox”);
capabilities.setCapability(“appActivity”, “.App”);

AppiumDriver appiumDriver = new AppiumDriver(new URL(“http://0.0.0.0:4723/wd/hub”), capabilities);

appiumDriver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);
appiumDriver.get(‘https://www.google.co.in/’)
Thread.sleep(5000)
WebElement e = appiumDriver.findElement(By.xpath(“//*[@class=‘NKcBbd’]”));
e.click()

From the above, we are able to launch the Firefox browser on device and able to open the specified URL as well

But after opening the URL, if we are trying to do some actions like entering the text into text filed or clicking on the link’s (hyper text) are not working because of Driver instance is not interacting with the elements. To overcome this issue and to convert the created driver instance to interact with Katalon WebUI (WebUiBuiltInKeywords) methods tried with the following snippet of code as well

WebUI.openBrowser(‘’)
WebDriver driver = DriverFactory.getWebDriver()
RunConfiguration.storeDriver(driver);
DriverFactory.changeWebDriverWithoutLog(driver);

Finally getting into the issue that -
Reason:
org.openqa.selenium.NoSuchElementException: An element could not be located on the page using the given search parameters.

Environment (for Mobile Testing)
Katalon Studio Version 8.3.5
Android Mobile - Firefox Browser
Appium Version: 1.22.3
Mobile platform/version under test: Android 9.0 (Real Device: deviceManufacturer: motorola, deviceModel: moto g(8) plus)

1 Like