Форум программистов, компьютерный форум, киберфорум
Java
Войти
Регистрация
Восстановить пароль
Блоги Сообщество Поиск Заказать работу  
 
0 / 0 / 0
Регистрация: 17.07.2023
Сообщений: 1

Appium flutter driver не запускается

17.07.2023, 22:11. Показов 1136. Ответов 0

Author24 — интернет-сервис помощи студентам
All of this is run through Java, meaning there is a specific project through which I run the test. (2 hours ago, it was giving me a problem, and a few minutes ago it was running fine, well, it was giving me a problem, which I'll copy below. So, somehow, all the listeners were occupied, even though I just turned on the computer and hadn't used Flutter yet! And then it resolved itself, it disabled them. And now, 30 minutes ago, it suddenly stopped running, just giving me this in the console, and the driver cannot start.)

Code Java project to launch appium

Java Скопировано
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
 @BeforeSuite
    @Parameters({"appiumAddress", "appiumPort", "adbPort", "UDID", "appiumService"})
    public void startAppiumServer(
            @Optional("127.0.0.1") String appiumAddress,
            @Optional("4723") String appiumPort,
            @Optional("5037") String adbPort,
            @Optional("") String udid,
            @Optional("1") String enableAppiumService
    ) throws MalformedURLException {
        System.out.println("udid:'" + udid + "'");
        System.out.println("ADB port:" + adbPort);
        System.out.println("Appium ip:" + appiumAddress);
        System.out.println("Appium port:" + appiumPort);
        System.out.println("Appium service enable:" + enableAppiumService + " + " + RUN_APPIUM_SERVER + " = " + (enableAppiumService.equals("1") && RUN_APPIUM_SERVER));
 
        this.appiumAddress = appiumAddress;
        this.adbPort = adbPort;
        this.udid = udid;
 
        if (enableAppiumService.equals("1") && RUN_APPIUM_SERVER) {
            bAppiumService = true;
            if (serviceAppium != null && serviceAppium.isRunning()) {
                serviceAppium.stop();
            }
 
            AppiumServiceBuilder builder;
            builder = new AppiumServiceBuilder()
                    .withArgument(() -> "--base-path", "/wd/hub")
                    .withArgument(() -> "--use-drivers", "uiautomator2,flutter")
                    .withArgument(() -> "--allow-insecure", "chromedriver_autodownload")
                    .withLogFile(new File("target/appium_server.log"))
                    .withIPAddress(appiumAddress)
                    .usingPort(Integer.parseInt(appiumPort))
                    .withArgument(GeneralServerFlag.SESSION_OVERRIDE)
                    .withArgument(GeneralServerFlag.LOG_TIMESTAMP)
                    .withArgument(GeneralServerFlag.DEBUG_LOG_SPACING)
                    .withArgument(GeneralServerFlag.LOG_LEVEL,
                            (DEBUG_MODE && APPIUM_SERVE_LOG_CONSOLE) ? "debug:debug" : "error:debug")
                    .withStartUpTimeOut(120, TimeUnit.SECONDS);
 
            System.out.println("Info: Appium service start");
            if (isAppiumServiceRunning(appiumAddress, appiumPort)) {
                System.out.println("Info: Appium already launch");
                stopAppiumServer(appiumPort);
                System.out.println("Info: Appium try stop");
                if (isAppiumServiceRunning(appiumAddress, appiumPort)) {
                    System.out.println("Info: Appium yet launch");
                } else {
                    System.out.println("Info: Appium stopped");
                }
            }
 
            serviceAppium = AppiumDriverLocalService.buildService(builder);
            serviceAppium.start();
            System.out.println("Info: Appium service launch");
        }
    }

Problem what i have right now!
Code Скопировано
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
D:\work>appium server --base-path /wd/hub/ --use-drivers=uiautomator2,flutter --use-plugins=execute-driver --allow-insecure chromedriver_autodownload --port 4723
[Appium] Attempting to load plugin execute-driver...
[debug] [Appium] Requiring plugin at C:\Users\danil\.appium\node_modules\@appium\execute-driver-plugin
[Appium] Welcome to Appium v2.0.0-beta.46
[Appium] Non-default server args:
[Appium] {
[Appium]   allowInsecure: [
[Appium]     'chromedriver_autodownload'
[Appium]   ],
[Appium]   basePath: '/wd/hub/',
[Appium]   useDrivers: [
[Appium]     'uiautomator2',
[Appium]     'flutter'
[Appium]   ],
[Appium]   usePlugins: [
[Appium]     'execute-driver'
[Appium]   ]
[Appium] }
[Appium] Attempting to load driver uiautomator2...
[debug] [Appium] Requiring driver at C:\Users\danil\.appium\node_modules\appium-uiautomator2-driver
[Appium] Appium REST http interface listener started on 0.0.0.0:4723
[Appium] Available drivers:
[Appium]   - uiautomator2@2.29.2 (automationName 'UiAutomator2')
[Appium] Available plugins:
[Appium]   - execute-driver@3.0.1 (ACTIVE)
[HTTP] --> POST /wd/hub/session
[HTTP] {"desiredCapabilities":{"appium:adbPort":"5037","appium:newCommandTimeout":"240","appium:skipUnlock":"true","appium:reportFormat":"html","appium:reportDirectory":"html","appium:automationName":"Flutter","appium:platformVersion":"11","appium:noReset":"true","appium:udid":"","appium:platformName":"Android","appium:FullReset":"false","appium:appActivity":"ru.iteco.teacher.MainActivity","appium:deviceName":"c059f641","platformName":"Android","appium:testName":"Flutter Automation","appium:appPackage":"ru.iteco.teacher"},"capabilities":{"firstMatch":[{"appium:FullReset":"false","appium:adbPort":"5037","appium:appActivity":"ru.iteco.teacher.MainActivity","appium:appPackage":"ru.iteco.teacher","appium:automationName":"Flutter","appium:deviceName":"c059f641","appium:newCommandTimeout":"240","appium:noReset":"true","appium:platformName":"Android","appium:platformVersion":"11","appium:reportDirectory":"html","appium:reportFormat":"html","appium:skipUnlock":"true","appium:testName":"Flutter Automation","appium:udid":"...
[debug] [AppiumDriver@51f1] Calling AppiumDriver.createSession() with args: [{"appium:adbPort":"5037","appium:newCommandTimeout":"240","appium:skipUnlock":"true","appium:reportFormat":"html","appium:reportDirectory":"html","appium:automationName":"Flutter","appium:platformVersion":"11","appium:noReset":"true","appium:udid":"","appium:platformName":"Android","appium:FullReset":"false","appium:appActivity":"ru.iteco.teacher.MainActivity","appium:deviceName":"c059f641","platformName":"Android","appium:testName":"Flutter Automation","appium:appPackage":"ru.iteco.teacher"},null,{"firstMatch":[{"appium:FullReset":"false","appium:adbPort":"5037","appium:appActivity":"ru.iteco.teacher.MainActivity","appium:appPackage":"ru.iteco.teacher","appium:automationName":"Flutter","appium:deviceName":"c059f641","appium:newCommandTimeout":"240","appium:noReset":"true","appium:platformName":"Android","appium:platformVersion":"11","appium:reportDirectory":"html","appium:reportFormat":"html","appium:skipUnlock":"true","appium:testName":"Flutter Automation","appium:udid":"","platformName":"android"}]}]
[debug] [AppiumDriver@51f1] Event 'newSessionRequested' logged at 1689598537342 (15:55:37 GMT+0300 (Москва, стандартное время))
[BaseDriver] Ignoring capability 'appium:platformName=Android' and using capability 'platformName=android'
[BaseDriver] The capabilities ["platformName"] are standard capabilities and do not require "appium:" prefix
[Appium] Attempting to find matching driver for automationName 'Flutter' and platformName 'android'
[debug] [AppiumDriver@51f1] Event 'newSessionStarted' logged at 1689598537362 (15:55:37 GMT+0300 (Москва, стандартное время))
[debug] [AppiumDriver@51f1] Encountered internal error running command: Error: Could not find a driver for automationName 'Flutter' and platformName android'. Have you installed a driver that supports those capabilities? Run 'appium driver list --installed' to see. (Lower-level error: Could not find installed driver to support given caps)
[debug] [AppiumDriver@51f1]     at DriverConfig.findMatchingDriver (C:\Users\danil\AppData\Roaming\npm\node_modules\appium\lib\extension\driver-config.js:175:13)
[debug] [AppiumDriver@51f1]     at AppiumDriver.createSession (C:\Users\danil\AppData\Roaming\npm\node_modules\appium\lib\appium.js:263:29)
[debug] [AppiumDriver@51f1]     at commandExecutor (C:\Users\danil\AppData\Roaming\npm\node_modules\appium\node_modules\@appium\base-driver\lib\basedriver\driver.js:126:9)
[debug] [AppiumDriver@51f1]     at AppiumDriver.executeCommand (C:\Users\danil\AppData\Roaming\npm\node_modules\appium\node_modules\@appium\base-driver\lib\basedriver\driver.js:143:15)
[debug] [AppiumDriver@51f1]     at processTicksAndRejections (node:internal/process/task_queues:95:5)
[debug] [AppiumDriver@51f1]     at defaultBehavior (C:\Users\danil\AppData\Roaming\npm\node_modules\appium\lib\appium.js:668:16)
[debug] [AppiumDriver@51f1]     at AppiumDriver.executeWrappedCommand (C:\Users\danil\AppData\Roaming\npm\node_modules\appium\lib\appium.js:762:16)
[debug] [AppiumDriver@51f1]     at AppiumDriver.executeCommand (C:\Users\danil\AppData\Roaming\npm\node_modules\appium\lib\appium.js:684:17)
[debug] [AppiumDriver@51f1]     at asyncHandler (C:\Users\danil\AppData\Roaming\npm\node_modules\appium\node_modules\@appium\base-driver\lib\protocol\protocol.js:346:19)
[HTTP] <-- POST /wd/hub/session 500 134 ms - 1087
[HTTP]

I can't solve this problem, Please help, I would be grateful ( And administration, reOPENING Questions, what people reopen!

i tried reinstall emulator, it's not workingДобавлено через 3 часа 25 минут
Ваши ответы не помогли, вы скинули просто другие темы, совершенно не касающиеся моей. Просто помогите с моей, потратьте 2 минуты, чтобы мне ответить, пожалуйста, не нужно мне кидать всякую хренотень, ссылки, которые совершенно не помогают
0
IT_Exp
Эксперт
34794 / 4073 / 2104
Регистрация: 17.06.2006
Сообщений: 32,602
Блог
17.07.2023, 22:11
Ответы с готовыми решениями:

Не запускается Driver San Francisco
Всем привет, помогите пожалуйста ! Установил Driver San Francisco, захожу в игру и вылетает вот такая ошибка &quot;Ошибка на...

Скроллинг в Appium
Всем привет, прекрасно понимаю, что технология редкая, и вряд ли мне помогут, но может кто-то и подскажет! И так, проблема в том, что не...

Не запускается WhatsApp (выдает ошибку) Chrome driver
При запуске программы выдает ошибку unknown error: cannot find Chrome binary (Driver info: chromedriver=2.43.600210...

0
Надоела реклама? Зарегистрируйтесь и она исчезнет полностью.
BasicMan
Эксперт
29316 / 5623 / 2384
Регистрация: 17.02.2009
Сообщений: 30,364
Блог
17.07.2023, 22:11
Помогаю со студенческими работами здесь

MS SQL driver type 4 ошибка: [Microsoft][SQLServer JDBC Driver]No ResultSet set was produced.
Всем привет! Может мне кто-нибудь помочь с моей проблемой связанной с MS SQL driver type 4? Я использую для разработки проекта следующее:...

Ошибка при создании драйвера. Device driver does not install on any devices, use primitive driver if this is intended
Не могу создать драйвер ядра из-за данной ошибки. Помогите пожалуйста))) INF ФАЙЛ ; ; hellodriver.inf ; ...

wpd file system volume driver has a driver problem
Добрый вечер. Выносной хард видит диск но его нельзя открыть. Пробовал встроенным фиксом, он пишет wpd file system volume driver has a...

an exception occurred in the driver: could not find driver
Помогите решить проблему с драйвером, вот скрины файлов, в php.ini поставил как ранее видел в нете

Не находит драйвер для Mysql Driver not loaded Driver not loaded
Хотел использовать QSqlTableModel в pyqt5, чтобы не прописывать кучу запросов для базы данных. С sqlite все прекрасно работает, а вот с...


Искать еще темы с ответами

Или воспользуйтесь поиском по форуму:
1
Ответ Создать тему
Новые блоги и статьи
Миграция монолита в Event-Driven микросервисную архитектуру на C#
stackOverflow 11.04.2025
Монолитная архитектура – классический подход к разработке программного обеспечения. Это приложение, построенное как единое целое, где все компоненты тесно связаны между собой. Большинство проектов. . .
Go в Kubernetes: Управление ресурсами
golander 11.04.2025
Разработчики Go-приложений в Kubernetes часто сталкиваются с неожиданными проблемами производительности и даже внезапными отказами контейнеров. Причина этого кроется в особенностях взаимодействия. . .
Агрегаты и сущности в DDD микросервисах
Javaican 10.04.2025
Разработка современных программных систем часто приводит на распутье: монолит или микросервисы? Даже при выборе микросервисной архитектуры многие команды сталкиваются с проблемой правильного. . .
Многопоточность в C#: Task и параллельное программирование
UnmanagedCoder 10.04.2025
Современные процессоры уже давно перестали наращивать тактовую частоту в пользу увеличения количества ядер. Это создало интересную ситуацию: разработчики, привыкшие к последовательному. . .
Линейное решение нелинейной задачи будет иметь приблизительный результат вычисления для метода обработки данных из double buffering.
Hrethgir 10.04.2025
Вообще изначально я пренебрёг квадратурой числа, но потом понял, что для вычисления приблизительного значения - сгодится, формулу можно будет корректировать по ходу. Это потому что прямое соотношение. . .
Переменные в Python
py-thonny 10.04.2025
Переменная в программировании — это символическое имя, связанное с областью памяти, в которой хранится значение. Она позволяет получать доступ к данным через понятные человеку идентификаторы, а не. . .
Многопоточность в C#: Task и асинхронные операции
UnmanagedCoder 10.04.2025
Многопоточность позволяет выполнять несколько операций одновременно, что важно для решения двух основных задач: повышения скорости выполнения вычислительно-сложных операций и сохранения отзывчивости. . .
Запуск контейнеров Docker на ARM64
Mr. Docker 09.04.2025
Появление таких решений, как Apple M1/ M2, AWS Graviton, Ampere Altra и Raspberry Pi, сделало использование ARM-систем обыденностью для многих разработчиков и DevOps-инженеров. При этом Docker,. . .
Vue SFC компонент на PHP с Fusion
Jason-Webb 09.04.2025
PHP на сервере и JavaScript на клиенте — классическое сочетание, которое, несмотря на свою эффективность, создает определенный когнитивный диссонанс при разработке. В этом контексте появляются. . .
TypeScript vs JavaScript: Отличия и когда что использовать
Reangularity 09.04.2025
JavaScript появился в 1995 году как творение Брендана Эйха и быстро стал основой интерактивности в вебе. За свою историю он прошел путь от простого языка для манипуляций с DOM до полноценной. . .
КиберФорум - форум программистов, компьютерный форум, программирование
Powered by vBulletin
Copyright ©2000 - 2025, CyberForum.ru
Выделить код Копировать код Сохранить код Нормальный размер Увеличенный размер