Skip to content

Instantly share code, notes, and snippets.

View TikhomirovSergey's full-sized avatar

Sergey Tikhomirov TikhomirovSergey

  • Тinkоff. Russia. Saint Petersburg.
  • Russia, Ivanovo/Saint Petersburg
View GitHub Profile
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* See the NOTICE file distributed with this work for additional
* information regarding copyright ownership.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
java.lang.IllegalAccessError: class xxx$EmptyStepClass$ByteBuddy$uCR3YycY cannot access its superclass xxx$EmptyStepClass
at java.base/java.lang.ClassLoader.defineClass1(Native Method)
at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1007)
at net.bytebuddy.dynamic.loading.ByteArrayClassLoader.access$200(ByteArrayClassLoader.java:39)
at net.bytebuddy.dynamic.loading.ByteArrayClassLoader$ClassDefinitionAction.run(ByteArrayClassLoader.java:466)
at net.bytebuddy.dynamic.loading.ByteArrayClassLoader$ClassDefinitionAction.run(ByteArrayClassLoader.java:420)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at net.bytebuddy.dynamic.loading.ByteArrayClassLoader.findClass(ByteArrayClassLoader.java:273)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:563)
public void tezzt() throws Exception {
SeleniumSteps selenium = getSubstituted(SeleniumSteps.class, params());
Button button = selenium.find(element(button("B1"))
.foundFrom(link("L1"))
.foundFrom(webElement(xpath(""))));
List<Link> links = selenium.find(elements(links())
.foundFrom(button)
.foundFrom(webElement(xpath(""))));
public void tezzt() throws Exception {
SeleniumSteps selenium = getSubstituted(SeleniumSteps.class, params());
Button button = selenium.find(element(button("B1"))
.foundFrom(link("L1"))
.foundFrom(webElement(xpath(""))));
List<Link> links = selenium.find(elements(links())
.foundFrom(button)
.foundFrom(webElement(xpath(""))));
[Appium] Welcome to Appium v1.8.0-beta3
[Appium] Appium REST http interface listener started on 0.0.0.0:4723
[HTTP] --> GET /wd/hub/status {}
[debug] [MJSONWP] Calling AppiumDriver.getStatus() with args: []
[debug] [MJSONWP] Responding to client with driver.getStatus() result: {"build":{"version":"1.8.0-beta3","revision":null}}
[HTTP] <-- GET /wd/hub/status 200 58 ms - 78
[HTTP] --> POST /wd/hub/session {"desiredCapabilities":{"browserName":"Browser","deviceName":"Android Emulator","platformName":"Android"},"capabilities":{"desiredCapabilities":{"browserName":"Browser","deviceName":"Android Emulator","platformName":"Android"},"firstMatch":[{"browserName":"Browser","appium:deviceName":"Android Emulator","platformName":"android"}]}}
[debug] [MJSONWP] Calling AppiumDriver.createSession() with args: [{"browserName":"Browser","deviceName":"Android Emulator","platformName":"Android"},null,{"desiredCapabilities":{"browserName":"Browser","deviceName":"Android Emulator","platformName":"Android"},"firstMatch":[{"brows
[Appium] Welcome to Appium v1.8.0-beta3
[Appium] Appium REST http interface listener started on 0.0.0.0:4723
[HTTP] --> GET /wd/hub/status {}
[debug] [MJSONWP] Calling AppiumDriver.getStatus() with args: []
[debug] [MJSONWP] Responding to client with driver.getStatus() result: {"build":{"version":"1.8.0-beta3","revision":null}}
[HTTP] <-- GET /wd/hub/status 200 316 ms - 78
[HTTP] --> POST /wd/hub/session {"desiredCapabilities":{"browserName":"Browser","deviceName":"Android Emulator","platformName":"Android"},"capabilities":{"desiredCapabilities":{"browserName":"Browser","deviceName":"Android Emulator","platformName":"Android"},"firstMatch":[{"browserName":"Browser","platformName":"android"}]}}
[debug] [MJSONWP] Calling AppiumDriver.createSession() with args: [{"browserName":"Browser","deviceName":"Android Emulator","platformName":"Android"},null,{"desiredCapabilities":{"browserName":"Browser","deviceName":"Android Emulator","platformName":"Android"},"firstMatch":[{"browserName":"Browser","platformName":"andr
[Appium] Welcome to Appium v1.8.0-beta3
[Appium] Appium REST http interface listener started on 0.0.0.0:4723
[HTTP] --> GET /wd/hub/status {}
[debug] [MJSONWP] Calling AppiumDriver.getStatus() with args: []
[debug] [MJSONWP] Responding to client with driver.getStatus() result: {"build":{"version":"1.8.0-beta3","revision":null}}
[HTTP] <-- GET /wd/hub/status 200 47 ms - 78
[HTTP] --> GET /wd/hub/status {}
[debug] [MJSONWP] Calling AppiumDriver.getStatus() with args: []
[debug] [MJSONWP] Responding to client with driver.getStatus() result: {"build":{"version":"1.8.0-beta3","revision":null}}
[HTTP] <-- GET /wd/hub/status 200 27 ms - 78
@BeforeClass public static void beforeClass() {
service = AppiumDriverLocalService.buildDefaultService();
service.start();
if (service == null || !service.isRunning()) {
throw new AppiumServerHasNotBeenStartedLocallyException(
"An appium server node is not started!");
}
File appDir = new File("src/test/java/io/appium/java_client");
Connected to the target VM, address: '127.0.0.1:55902', transport: 'socket'
[HTTP] --> POST /wd/hub/session/8892f614-d162-4729-b0ac-da81f084376c/appium/device/start_activity {"appPackage":"io.appium.android.apis","appActivity":".ApiDemos","appWaitPackage":"","appWaitActivity":"","dontStopAppOnReset":false,"intentAction":"","intentCategory":"","intentFlags":"","optionalIntentArguments":""}
[debug] [MJSONWP] Calling AppiumDriver.startActivity() with args: ["io.appium.android.apis",".ApiDemos","","","","","","",false,null,null,"8892f614-d162-4729-b0ac-da81f084376c"]
[debug] [AndroidDriver] Starting package 'io.appium.android.apis' and activity '.ApiDemos'
[debug] [ADB] Device API level: 19
[debug] [ADB] Getting connected devices...
Disconnected from the target VM, address: '127.0.0.1:55902', transport: 'socket'
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running 'C:\MyAndroid\platform-tools\adb.exe' with args: ["-P",5037,"-s","emulator-5554","shell","am","start","-W","-n","io.appium.android.apis/.ApiDemos"
@BeforeClass public static void beforeClass() {
service = AppiumDriverLocalService.buildDefaultService();
service.start();
if (service == null || !service.isRunning()) {
throw new AppiumServerHasNotBeenStartedLocallyException(
"An appium server node is not started!");
}
File appDir = new File("src/test/java/io/appium/java_client");