My all test cases not executed. It executed in the following manner
1
3
5
it will terminate the session for 2 and 4 cases.
Please help me How to maintain Appium session
My appium INit code is following
/* Start and Stop Appium Server Script */
package Utilities;
import com.cucumber.listener.Reporter;
import cucumber.api.Scenario;
import cucumber.api.java.After;
import cucumber.api.java.Before;
import io.appium.java_client.MobileElement;
import io.appium.java_client.android.AndroidDriver;
import io.appium.java_client.service.local.AppiumDriverLocalService;
import io.appium.java_client.service.local.AppiumServiceBuilder;
import org.apache.commons.exec.CommandLine;
import org.apache.commons.io.FileUtils;
import org.openqa.selenium.OutputType;
import org.openqa.selenium.TakesScreenshot;
import org.openqa.selenium.WebDriverException;
import org.openqa.selenium.remote.DesiredCapabilities;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.net.MalformedURLException;
import java.net.URL;
import java.nio.file.Files;
import java.util.Properties;
import java.util.concurrent.TimeUnit;
import static org.testng.AssertJUnit.assertTrue;
public class AppiumController {
private static String platformName;
private static String deviceName;
private static String platformVersion;
private static String app;
private static String appPackage;
private static String appActivity;
public static AppiumController instance = new AppiumController();
public static AndroidDriver<MobileElement> driver;
public static String rootPath = System.getProperty("user.dir");
AppiumDriverLocalService service;
// String Appium_Node_Path="C:\\Program Files\\nodejs\\node.exe";
// String Appium_JS_Path="C:\\Users\\win10\\AppData\\Roaming\\npm\\node_modules\\appium\\build\\lib\\main.js";
//static String service_url;
//private String appiumPort;
//private String serverIp;
@Before
public AndroidDriver<MobileElement> start() throws MalformedURLException {
// Reporter.assignAuthor("KASH-Automation Team");
Properties pro = new Properties();
try {
InputStream input = new FileInputStream(rootPath + "\\src\\test\\java\\Config\\config.properties");
pro.load(input);
platformName = pro.getProperty("platformName");
deviceName = pro.getProperty("deviceName");
platformVersion = pro.getProperty("platformVersion");
app = pro.getProperty(rootPath + "/apk/KashNoDx.apk");
appPackage = pro.getProperty("appPackage");
appActivity = pro.getProperty("appActivity");
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
//service = AppiumDriverLocalService.buildService(new AppiumServiceBuilder(). //Start Appium implementation 1
// usingAnyFreePort().usingDriverExecutable(new File(Appium_Node_Path)).
// withAppiumJS(new File(Appium_JS_Path)));
service = AppiumDriverLocalService.buildDefaultService(); //Start Appium implementation 2
service.start();
//service_url = service.getUrl().toString();
DesiredCapabilities capabilities = new DesiredCapabilities();
capabilities.setCapability("automationName", "appium");
capabilities.setCapability("platformName", platformName);
capabilities.setCapability("deviceName", deviceName);
capabilities.setCapability("platformVersion", platformVersion);
capabilities.setCapability("app", app);
//capabilities.setCapability("app", "D:\\Coinca\\CoincaAutomation\\BitBucketCode\\kash_automated_testing\\apk\\KashNoDx.apk");
capabilities.setCapability("appPackage", appPackage);
capabilities.setCapability("appActivity", appActivity);
capabilities.setCapability("autoGrantPermissions", "true");
capabilities.setCapability("unicodeKeyboard", true);
capabilities.setCapability("resetKeyboard", true);
capabilities.setCapability("fastReset", true);
// capabilities.setCapability("–session-override", true);
driver = new AndroidDriver(new URL("http://0.0.0.0:4723/wd/hub"), capabilities); //Start appium providing static url
//String serverUrl = "http://" + serverIp + ":" + appiumPort + "/wd/hub"; //Start appium providing dynamic url
// driver= new AndroidDriver(new URL(service_url),capabilities);
driver.manage().timeouts().implicitlyWait(1, TimeUnit.MINUTES);
return driver;
}
@After
public void stop(Scenario scenario) throws InterruptedException {
if (scenario.isFailed()) {
System.out.println(scenario.getName());
final byte[] screenshot = ((TakesScreenshot) driver).getScreenshotAs(OutputType.BYTES);
// embed it in the report.
scenario.embed(screenshot, "image/png");
}
if (driver != null) {
// driver.resetApp();
driver.quit();
service.stop();
Thread.sleep(5000);
CommandLine command = new CommandLine("cmd");
command.addArgument("/c");
command.addArgument("Taskkill /F /IM node.exe");
Thread.sleep(30000);
//driver = null;
}
}
}
I am getting following error
y.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:366)\n\tat io.netty.channel.AbstractChannelHandlerCon…
[debug] [W3C] Matched W3C error code ‘no such element’ to NoSuchElementError
[debug] [BaseDriver] Waited for 39281 ms so far
[debug] [WD Proxy] Matched ‘/element’ to command name ‘findElement’
[debug] [WD Proxy] Proxying [POST /element] to [POST http://localhost:8229/wd/hub/session/50e7c400-ccbb-4a1a-b23c-0e8dcb2a4873/element] with body: {“strategy”:“xpath”,“selector”:"//andro
id.widget.FrameLayout/android.widget.LinearLayout/android.view.ViewGroup/android.widget.ImageButton",“context”:"",“multiple”:false}
[WD Proxy] Got an unexpected response with status 404: {“sessionId”:“50e7c400-ccbb-4a1a-b23c-0e8dcb2a4873”,“value”:{“error”:“no such element”,“message”:“An element could not be located o
n the page using the given search parameters”,“stacktrace”:“io.appium.uiautomator2.common.exceptions.ElementNotFoundException: An element could not be located on the page using the given
search parameters\n\tat io.appium.uiautomator2.handler.FindElement.findElement(FindElement.java:102)\n\tat io.appium.uiautomator2.handler.FindElement.safeHandle(FindElement.java:72)\n\t
at io.appium.uiautomator2.handler.request.SafeRequestHandler.handle(SafeRequestHandler.java:38)\n\tat io.appium.uiautomator2.server.AppiumServlet.handleRequest(AppiumServlet.java:252)\n
tat io.appium.uiautomator2.server.AppiumServlet.handleHttpRequest(AppiumServlet.java:242)\n\tat io.appium.uiautomator2.http.ServerHandler.channelRead(ServerHandler.java:44)\n\tat io.nett
y.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:366)\n\tat io.netty.channel.AbstractChannelHandlerCon…
[debug] [W3C] Matched W3C error code ‘no such element’ to NoSuchElementError
[debug] [BaseDriver] Waited for 40243 ms so far
[debug] [WD Proxy] Matched ‘/element’ to command name ‘findElement’
[debug] [WD Proxy] Proxying [POST /element] to [POST http://localhost:8229/wd/hub/session/50e7c400-ccbb-4a1a-b23c-0e8dcb2a4873/element] with body: {“strategy”:“xpath”,“selector”:”//andro
id.widget.FrameLayout/android.widget.LinearLayout/android.view.ViewGroup/android.widget.ImageButton",“context”:"",“multiple”:false}
[WD Proxy] Got an unexpected response with status 404: {“sessionId”:“50e7c400-ccbb-4a1a-b23c-0e8dcb2a4873”,“value”:{“error”:“no such element”,“message”:“An element could not be located o
n the page using the given search parameters”,“stacktrace”:“io.appium.uiautomator2.common.exceptions.ElementNotFoundException: An element could not be located on the page using the given
search parameters\n\tat io.appium.uiautomator2.handler.FindElement.findElement(FindElement.java:102)\n\tat io.appium.uiautomator2.handler.FindElement.safeHandle(FindElement.java:72)\n\t
at io.appium.uiautomator2.handler.request.SafeRequestHandler.handle(SafeRequestHandler.java:38)\n\tat io.appium.uiautomator2.server.AppiumServlet.handleRequest(AppiumServlet.java:252)\n
tat io.appium.uiautomator2.server.AppiumServlet.handleHttpRequest(AppiumServlet.java:242)\n\tat io.appium.uiautomator2.http.ServerHandler.channelRead(ServerHandler.java:44)\n\tat io.nett
y.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:366)\n\tat io.netty.channel.AbstractChannelHandlerCon…
[debug] [W3C] Matched W3C error code ‘no such element’ to NoSuchElementError
[debug] [BaseDriver] Waited for 40918 ms so far
[debug] [WD Proxy] Matched ‘/element’ to command name ‘findElement’
[debug] [WD Proxy] Proxying [POST /element] to [POST http://localhost:8229/wd/hub/session/50e7c400-ccbb-4a1a-b23c-0e8dcb2a4873/element] with body: {“strategy”:“xpath”,“selector”:”//andro
id.widget.FrameLayout/android.widget.LinearLayout/android.view.ViewGroup/android.widget.ImageButton",“context”:"",“multiple”:false}
[WD Proxy] Got an unexpected response with status 404: {“sessionId”:“50e7c400-ccbb-4a1a-b23c-0e8dcb2a4873”,“value”:{“error”:“no such element”,“message”:“An element could not be located o
n the page using the given search parameters”,“stacktrace”:“io.appium.uiautomator2.common.exceptions.ElementNotFoundException: An element could not be located on the page using the given
search parameters\n\tat io.appium.uiautomator2.handler.FindElement.findElement(FindElement.java:102)\n\tat io.appium.uiautomator2.handler.FindElement.safeHandle(FindElement.java:72)\n\t
at io.appium.uiautomator2.handler.request.SafeRequestHandler.handle(SafeRequestHandler.java:38)\n\tat io.appium.uiautomator2.server.AppiumServlet.handleRequest(AppiumServlet.java:252)\n
tat io.appium.uiautomator2.server.AppiumServlet.handleHttpRequest(AppiumServlet.java:242)\n\tat io.appium.uiautomator2.http.ServerHandler.channelRead(ServerHandler.java:44)\n\tat io.nett
y.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:366)\n\tat io.netty.channel.AbstractChannelHandlerCon…
[debug] [W3C] Matched W3C error code ‘no such element’ to NoSuchElementError
[debug] [BaseDriver] Waited for 41605 ms so far
[debug] [WD Proxy] Matched ‘/element’ to command name ‘findElement’
[debug] [WD Proxy] Proxying [POST /element] to [POST http://localhost:8229/wd/hub/session/50e7c400-ccbb-4a1a-b23c-0e8dcb2a4873/element] with body: {“strategy”:“xpath”,“selector”:”//andro
id.widget.FrameLayout/android.widget.LinearLayout/android.view.ViewGroup/android.widget.ImageButton",“context”:"",“multiple”:false}
[WD Proxy] Got an unexpected response with status 404: {“sessionId”:“50e7c400-ccbb-4a1a-b23c-0e8dcb2a4873”,“value”:{“error”:“no such element”,“message”:“An element could not be located o
n the page using the given search parameters”,“stacktrace”:“io.appium.uiautomator2.common.exceptions.ElementNotFoundException: An element could not be located on the page using the given
search parameters\n\tat io.appium.uiautomator2.handler.FindElement.findElement(FindElement.java:102)\n\tat io.appium.uiautomator2.handler.FindElement.safeHandle(FindElement.java:72)\n\t
at io.appium.uiautomator2.handler.request.SafeRequestHandler.handle(SafeRequestHandler.java:38)\n\tat io.appium.uiautomator2.server.AppiumServlet.handleRequest(AppiumServlet.java:252)\n
tat io.appium.uiautomator2.server.AppiumServlet.handleHttpRequest(AppiumServlet.java:242)\n\tat io.appium.uiautomator2.http.ServerHandler.channelRead(ServerHandler.java:44)\n\tat io.nett
y.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:366)\n\tat io.netty.channel.AbstractChannelHandlerCon…
[debug] [W3C] Matched W3C error code ‘no such element’ to NoSuchElementError
[debug] [BaseDriver] Waited for 42228 ms so far
[debug] [WD Proxy] Matched ‘/element’ to command name ‘findElement’
[debug] [WD Proxy] Proxying [POST /element] to [POST http://localhost:8229/wd/hub/session/50e7c400-ccbb-4a1a-b23c-0e8dcb2a4873/element] with body: {“strategy”:“xpath”,“selector”:”//andro
id.widget.FrameLayout/android.widget.LinearLayout/android.view.ViewGroup/android.widget.ImageButton",“context”:"",“multiple”:false}
[WD Proxy] Got an unexpected response with status 404: {“sessionId”:“50e7c400-ccbb-4a1a-b23c-0e8dcb2a4873”,“value”:{“error”:“no such element”,“message”:“An element could not be located o
n the page using the given search parameters”,“stacktrace”:“io.appium.uiautomator2.common.exceptions.ElementNotFoundException: An element could not be located on the page using the given
search parameters\n\tat io.appium.uiautomator2.handler.FindElement.findElement(FindElement.java:102)\n\tat io.appium.uiautomator2.handler.FindElement.safeHandle(FindElement.java:72)\n\t
at io.appium.uiautomator2.handler.request.SafeRequestHandler.handle(SafeRequestHandler.java:38)\n\tat io.appium.uiautomator2.server.AppiumServlet.handleRequest(AppiumServlet.java:252)\n
tat io.appium.uiautomator2.server.AppiumServlet.handleHttpRequest(AppiumServlet.java:242)\n\tat io.appium.uiautomator2.http.ServerHandler.channelRead(ServerHandler.java:44)\n\tat io.nett
y.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:366)\n\tat io.netty.channel.AbstractChannelHandlerCon…
[debug] [W3C] Matched W3C error code ‘no such element’ to NoSuchElementError
[debug] [BaseDriver] Waited for 42845 ms so far
[debug] [WD Proxy] Matched ‘/element’ to command name ‘findElement’
[debug] [WD Proxy] Proxying [POST /element] to [POST http://localhost:8229/wd/hub/session/50e7c400-ccbb-4a1a-b23c-0e8dcb2a4873/element] with body: {“strategy”:“xpath”,“selector”:”//andro
id.widget.FrameLayout/android.widget.LinearLayout/android.view.ViewGroup/android.widget.ImageButton",“context”:"",“multiple”:false}
[WD Proxy] Got an unexpected response with status 404: {“sessionId”:“50e7c400-ccbb-4a1a-b23c-0e8dcb2a4873”,“value”:{“error”:“no such element”,“message”:“An element could not be located o
n the page using the given search parameters”,“stacktrace”:“io.appium.uiautomator2.common.exceptions.ElementNotFoundException: An element could not be located on the page using the given
search parameters\n\tat io.appium.uiautomator2.handler.FindElement.findElement(FindElement.java:102)\n\tat io.appium.uiautomator2.handler.FindElement.safeHandle(FindElement.java:72)\n\t
at io.appium.uiautomator2.handler.request.SafeRequestHandler.handle(SafeRequestHandler.java:38)\n\tat io.appium.uiautomator2.server.AppiumServlet.handleRequest(AppiumServlet.java:252)\n
tat io.appium.uiautomator2.server.AppiumServlet.handleHttpRequest(AppiumServlet.java:242)\n\tat io.appium.uiautomator2.http.ServerHandler.channelRead(ServerHandler.java:44)\n\tat io.nett
y.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:366)\n\tat io.netty.channel.AbstractChannelHandlerCon…
[debug] [W3C] Matched W3C error code ‘no such element’ to NoSuchElementError
[debug] [BaseDriver] Waited for 43524 ms so far
[debug] [WD Proxy] Matched ‘/element’ to command name ‘findElement’
[debug] [WD Proxy] Proxying [POST /element] to [POST http://localhost:8229/wd/hub/session/50e7c400-ccbb-4a1a-b23c-0e8dcb2a4873/element] with body: {“strategy”:“xpath”,“selector”:”//andro
id.widget.FrameLayout/android.widget.LinearLayout/android.view.ViewGroup/android.widget.ImageButton",“context”:"",“multiple”:false}
[WD Proxy] Got an unexpected response with status 404: {“sessionId”:“50e7c400-ccbb-4a1a-b23c-0e8dcb2a4873”,“value”:{“error”:“no such element”,“message”:“An element could not be located o
n the page using the given search parameters”,“stacktrace”:“io.appium.uiautomator2.common.exceptions.ElementNotFoundException: An element could not be located on the page using the given
search parameters\n\tat io.appium.uiautomator2.handler.FindElement.findElement(FindElement.java:102)\n\tat io.appium.uiautomator2.handler.FindElement.safeHandle(FindElement.java:72)\n\t
at io.appium.uiautomator2.handler.request.SafeRequestHandler.handle(SafeRequestHandler.java:38)\n\tat io.appium.uiautomator2.server.AppiumServlet.handleRequest(AppiumServlet.java:252)\n
tat io.appium.uiautomator2.server.AppiumServlet.handleHttpRequest(AppiumServlet.java:242)\n\tat io.appium.uiautomator2.http.ServerHandler.channelRead(ServerHandler.java:44)\n\tat io.nett
y.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:366)\n\tat io.netty.channel.AbstractChannelHandlerCon…
[debug] [W3C] Matched W3C error code ‘no such element’ to NoSuchElementError
[debug] [BaseDriver] Waited for 44188 ms so far
[debug] [WD Proxy] Matched ‘/element’ to command name ‘findElement’
[debug] [WD Proxy] Proxying [POST /element] to [POST http://localhost:8229/wd/hub/session/50e7c400-ccbb-4a1a-b23c-0e8dcb2a4873/element] with body: {“strategy”:“xpath”,“selector”:”//andro
id.widget.FrameLayout/android.widget.LinearLayout/android.view.ViewGroup/android.widget.ImageButton",“context”:"",“multiple”:false}
[WD Proxy] Got an unexpected response with status 404: {“sessionId”:“50e7c400-ccbb-4a1a-b23c-0e8dcb2a4873”,“value”:{“error”:“no such element”,“message”:“An element could not be located o
n the page using the given search parameters”,“stacktrace”:“io.appium.uiautomator2.common.exceptions.ElementNotFoundException: An element could not be located on the page using the given
search parameters\n\tat io.appium.uiautomator2.handler.FindElement.findElement(FindElement.java:102)\n\tat io.appium.uiautomator2.handler.FindElement.safeHandle(FindElement.java:72)\n\t
at io.appium.uiautomator2.handler.request.SafeRequestHandler.handle(SafeRequestHandler.java:38)\n\tat io.appium.uiautomator2.server.AppiumServlet.handleRequest(AppiumServlet.java:252)\n
tat io.appium.uiautomator2.server.AppiumServlet.handleHttpRequest(AppiumServlet.java:242)\n\tat io.appium.uiautomator2.http.ServerHandler.channelRead(ServerHandler.java:44)\n\tat io.nett
y.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:366)\n\tat io.netty.channel.AbstractChannelHandlerCon…
[debug] [W3C] Matched W3C error code ‘no such element’ to NoSuchElementError
[debug] [BaseDriver] Waited for 44988 ms so far
[debug] [WD Proxy] Matched ‘/element’ to command name ‘findElement’
[debug] [WD Proxy] Proxying [POST /element] to [POST http://localhost:8229/wd/hub/session/50e7c400-ccbb-4a1a-b23c-0e8dcb2a4873/element] with body: {“strategy”:“xpath”,“selector”:”//andro
id.widget.FrameLayout/android.widget.LinearLayout/android.view.ViewGroup/android.widget.ImageButton",“context”:"",“multiple”:false}
[WD Proxy] Got an unexpected response with status 404: {“sessionId”:“50e7c400-ccbb-4a1a-b23c-0e8dcb2a4873”,“value”:{“error”:“no such element”,“message”:“An element could not be located o
n the page using the given search parameters”,“stacktrace”:“io.appium.uiautomator2.common.exceptions.ElementNotFoundException: An element could not be located on the page using the given
search parameters\n\tat io.appium.uiautomator2.handler.FindElement.findElement(FindElement.java:102)\n\tat io.appium.uiautomator2.handler.FindElement.safeHandle(FindElement.java:72)\n\t
at io.appium.uiautomator2.handler.request.SafeRequestHandler.handle(SafeRequestHandler.java:38)\n\tat io.appium.uiautomator2.server.AppiumServlet.handleRequest(AppiumServlet.java:252)\n
tat io.appium.uiautomator2.server.AppiumServlet.handleHttpRequest(AppiumServlet.java:242)\n\tat io.appium.uiautomator2.http.ServerHandler.channelRead(ServerHandler.java:44)\n\tat io.nett
y.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:366)\n\tat io.netty.channel.AbstractChannelHandlerCon…
[debug] [W3C] Matched W3C error code ‘no such element’ to NoSuchElementError
[debug] [BaseDriver] Waited for 45638 ms so far
[debug] [WD Proxy] Matched ‘/element’ to command name ‘findElement’
[debug] [WD Proxy] Proxying [POST /element] to [POST http://localhost:8229/wd/hub/session/50e7c400-ccbb-4a1a-b23c-0e8dcb2a4873/element] with body: {“strategy”:“xpath”,“selector”:”//andro
id.widget.FrameLayout/android.widget.LinearLayout/android.view.ViewGroup/android.widget.ImageButton",“context”:"",“multiple”:false}
[WD Proxy] Got an unexpected response with status 404: {“sessionId”:“50e7c400-ccbb-4a1a-b23c-0e8dcb2a4873”,“value”:{“error”:“no such element”,“message”:“An element could not be located o
n the page using the given search parameters”,“stacktrace”:“io.appium.uiautomator2.common.exceptions.ElementNotFoundException: An element could not be located on the page using the given
search parameters\n\tat io.appium.uiautomator2.handler.FindElement.findElement(FindElement.java:102)\n\tat io.appium.uiautomator2.handler.FindElement.safeHandle(FindElement.java:72)\n\t
at io.appium.uiautomator2.handler.request.SafeRequestHandler.handle(SafeRequestHandler.java:38)\n\tat io.appium.uiautomator2.server.AppiumServlet.handleRequest(AppiumServlet.java:252)\n
tat io.appium.uiautomator2.server.AppiumServlet.handleHttpRequest(AppiumServlet.java:242)\n\tat io.appium.uiautomator2.http.ServerHandler.channelRead(ServerHandler.java:44)\n\tat io.nett
y.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:366)\n\tat io.netty.channel.AbstractChannelHandlerCon…
[debug] [W3C] Matched W3C error code ‘no such element’ to NoSuchElementError
[debug] [BaseDriver] Waited for 46367 ms so far
[debug] [WD Proxy] Matched ‘/element’ to command name ‘findElement’
[debug] [WD Proxy] Proxying [POST /element] to [POST http://localhost:8229/wd/hub/session/50e7c400-ccbb-4a1a-b23c-0e8dcb2a4873/element] with body: {“strategy”:“xpath”,“selector”:”//andro
id.widget.FrameLayout/android.widget.LinearLayout/android.view.ViewGroup/android.widget.ImageButton",“context”:"",“multiple”:false}
[WD Proxy] Got an unexpected response with status 404: {“sessionId”:“50e7c400-ccbb-4a1a-b23c-0e8dcb2a4873”,“value”:{“error”:“no such element”,“message”:“An element could not be located o
n the page using the given search parameters”,“stacktrace”:“io.appium.uiautomator2.common.exceptions.ElementNotFoundException: An element could not be located on the page using the given
search parameters\n\tat io.appium.uiautomator2.handler.FindElement.findElement(FindElement.java:102)\n\tat io.appium.uiautomator2.handler.FindElement.safeHandle(FindElement.java:72)\n\t
at io.appium.uiautomator2.handler.request.SafeRequestHandler.handle(SafeRequestHandler.java:38)\n\tat io.appium.uiautomator2.server.AppiumServlet.handleRequest(AppiumServlet.java:252)\n
tat io.appium.uiautomator2.server.AppiumServlet.handleHttpRequest(AppiumServlet.java:242)\n\tat io.appium.uiautomator2.http.ServerHandler.channelRead(ServerHandler.java:44)\n\tat io.nett
y.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:366)\n\tat io.netty.channel.AbstractChannelHandlerCon…
[debug] [W3C] Matched W3C error code ‘no such element’ to NoSuchElementError
[debug] [BaseDriver] Waited for 47071 ms so far
[debug] [WD Proxy] Matched ‘/element’ to command name ‘findElement’
[debug] [WD Proxy] Proxying [POST /element] to [POST http://localhost:8229/wd/hub/session/50e7c400-ccbb-4a1a-b23c-0e8dcb2a4873/element] with body: {“strategy”:“xpath”,“selector”:”//andro
id.widget.FrameLayout/android.widget.LinearLayout/android.view.ViewGroup/android.widget.ImageButton",“context”:"",“multiple”:false}
[WD Proxy] Got an unexpected response with status 404: {“sessionId”:“50e7c400-ccbb-4a1a-b23c-0e8dcb2a4873”,“value”:{“error”:“no such element”,“message”:“An element could not be located o
n the page using the given search parameters”,“stacktrace”:“io.appium.uiautomator2.common.exceptions.ElementNotFoundException: An element could not be located on the page using the given
search parameters\n\tat io.appium.uiautomator2.handler.FindElement.findElement(FindElement.java:102)\n\tat io.appium.uiautomator2.handler.FindElement.safeHandle(FindElement.java:72)\n\t
at io.appium.uiautomator2.handler.request.SafeRequestHandler.handle(SafeRequestHandler.java:38)\n\tat io.appium.uiautomator2.server.AppiumServlet.handleRequest(AppiumServlet.java:252)\n
tat io.appium.uiautomator2.server.AppiumServlet.handleHttpRequest(AppiumServlet.java:242)\n\tat io.appium.uiautomator2.http.ServerHandler.channelRead(ServerHandler.java:44)\n\tat io.nett
y.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:366)\n\tat io.netty.channel.AbstractChannelHandlerCon…
[debug] [W3C] Matched W3C error code ‘no such element’ to NoSuchElementError
[debug] [BaseDriver] Waited for 47726 ms so far
[debug] [WD Proxy] Matched ‘/element’ to command name ‘findElement’
[debug] [WD Proxy] Proxying [POST /element] to [POST http://localhost:8229/wd/hub/session/50e7c400-ccbb-4a1a-b23c-0e8dcb2a4873/element] with body: {“strategy”:“xpath”,“selector”:”//andro
id.widget.FrameLayout/android.widget.LinearLayout/android.view.ViewGroup/android.widget.ImageButton",“context”:"",“multiple”:false}
[WD Proxy] Got an unexpected response with status 404: {“sessionId”:“50e7c400-ccbb-4a1a-b23c-0e8dcb2a4873”,“value”:{“error”:“no such element”,“message”:“An element could not be located o
n the page using the given search parameters”,“stacktrace”:“io.appium.uiautomator2.common.exceptions.ElementNotFoundException: An element could not be located on the page using the given
search parameters\n\tat io.appium.uiautomator2.handler.FindElement.findElement(FindElement.java:102)\n\tat io.appium.uiautomator2.handler.FindElement.safeHandle(FindElement.java:72)\n\t
at io.appium.uiautomator2.handler.request.SafeRequestHandler.handle(SafeRequestHandler.java:38)\n\tat io.appium.uiautomator2.server.AppiumServlet.handleRequest(AppiumServlet.java:252)\n
tat io.appium.uiautomator2.server.AppiumServlet.handleHttpRequest(AppiumServlet.java:242)\n\tat io.appium.uiautomator2.http.ServerHandler.channelRead(ServerHandler.java:44)\n\tat io.nett
y.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:366)\n\tat io.netty.channel.AbstractChannelHandlerCon…
[debug] [W3C] Matched W3C error code ‘no such element’ to NoSuchElementError
[debug] [BaseDriver] Waited for 48564 ms so far
[debug] [WD Proxy] Matched ‘/element’ to command name ‘findElement’
[debug] [WD Proxy] Proxying [POST /element] to [POST http://localhost:8229/wd/hub/session/50e7c400-ccbb-4a1a-b23c-0e8dcb2a4873/element] with body: {“strategy”:“xpath”,“selector”:”//andro
id.widget.FrameLayout/android.widget.LinearLayout/android.view.ViewGroup/android.widget.ImageButton",“context”:"",“multiple”:false}
[WD Proxy] Got an unexpected response with status 404: {“sessionId”:“50e7c400-ccbb-4a1a-b23c-0e8dcb2a4873”,“value”:{“error”:“no such element”,“message”:“An element could not be located o
n the page using the given search parameters”,“stacktrace”:"io.appium.uiautomator2.common.exceptions.ElementNotFoundException: An element could not be located on the page using the given
search parameters\n\tat io.appium.uiautomator2.handler.FindElement.findElement(FindElement.java:102)\n\tat io.appium.uiautomator2.handler.FindElement.safeHandle(FindElement.java:72)\n\t
at io.appium.uiautomator2.handler.request.SafeRequestHandler.handle(SafeRequestHandler.java:38)\n\tat io.appium.uiautomator2.server.AppiumServlet.handleRequest(AppiumServlet.java:252)\n
tat io.appium.uiautomator2.server.AppiumServlet.handleHttpRequest(AppiumServlet.java:242)\n\tat io.appium.uiautomator2.http.Terminate batch job (Y/N)? y