Appum 1.6.3 bilan ishlaydigan WinAppDriver bo'lolmaydi

Men Windows 10 64bit tizimida kalkulyator ilovasini ishga tushirishning oddiy testini ishlatishga harakat qilaman, [email protected] o'rnatdim. Appium-ni o'rnatish bilan doc-ga ko'ra, winappriver ham o'rnatiladi. Ammo men sinovni bajarishga urinib ko'rganimda, unda yuklanmagani uchun shikoyat qiladigan xatolikni ko'rib chiqaman.

C:\WINDOWS\system32>appium
[Appium] Welcome to Appium v1.6.3
[Appium] Appium REST http interface listener started on 0.0.0.0:4723
[HTTP] --> POST /wd/hub/session {"desiredCapabilities":{"app":"Microsoft.WindowsCalculator_8wekyb3d8bbwe!App","platformName":"Windows","deviceName":"WindowsPC"}}
[debug] [MJSONWP] Calling AppiumDriver.createSession() with args: [{"app":"Microsoft.WindowsCalculator_8wekyb3d8bbwe!App","platformName":"Windows","deviceName":"WindowsPC"},null,null,null,null]
[Appium] Creating new WindowsDriver session
[Appium] Capabilities:
[Appium]   app: 'Microsoft.WindowsCalculator_8wekyb3d8bbwe!App'
[Appium]   platformName: 'Windows'
[Appium]   deviceName: 'WindowsPC'
[BaseDriver] The following capabilities were provided, but are not recognized by appium: app.
[BaseDriver] Session created with session id: c0c6c7e6-b782-4b14-8192-bc78e5b38008
[WinAppDriver] Verifying WinAppDriver is installed with correct checksum
[HTTP] <-- POST /wd/hub/session - - ms - -
[debug] [WinAppDriver] Deleting WinAppDriver session
[MJSONWP] Encountered internal error running command: Error: Could not verify WinAppDriver install; re-run install
    at WinAppDriver.start$ (../../lib/winappdriver.js:35:13)
    at tryCatch (C:\Users\bhawsar\AppData\Roaming\npm\node_modules\appium\node_modules\babel-runtime\regenerator\runtime.js:67:40)
    at GeneratorFunctionPrototype.invoke [as _invoke] (C:\Users\bhawsar\AppData\Roaming\npm\node_modules\appium\node_modules\babel-runtime\regenerator\runtime.js:315:22)
    at GeneratorFunctionPrototype.prototype.(anonymous function) [as next] (C:\Users\bhawsar\AppData\Roaming\npm\node_modules\appium\node_modules\babel-runtime\regenerator\runtime.js:100:21)
    at GeneratorFunctionPrototype.invoke (C:\Users\bhawsar\AppData\Roaming\npm\node_modules\appium\node_modules\babel-runtime\regenerator\runtime.js:136:37)

Shuningdek, test skriptimni qo'shaman:

var wd = require("wd");
var chai = require("chai");
var chaiAsPromised = require("chai-as-promised");
chai.use(chaiAsPromised);
var should = chai.should();
//enable chai assertion chaining
chaiAsPromised.transferPromiseness = wd.transferPromiseness;

var serverConfig = {
    host:'127.0.0.1',
    port:4723,

};

var capabilities = {
    app:'Microsoft.WindowsCalculator_8wekyb3d8bbwe!App',
    platformName:'Windows',
    deviceName:'WindowsPC'
};

var driver;

describe('test calculator',function(){
it('test launch calculator',function(done){

  driver = wd.promiseChainRemote(serverConfig);
  console.log(driver)
  this.timeout(10000);
    var cap=driver.init(capabilities);
    console.log(cap)
         done();
})
});
0

9 javoblar

WinAppDriverni birinchi navbatda o'rnatdingizmi? https://github.com/Microsoft/WinAppDriver/releases , WindowsApplicationDriver.msi

Eslatma: hozirda faqatgina Win 10 uchun.

0
qo'shib qo'ydi
BTW bilan bog'liq bo'lgan narsa topildi: github.com/Microsoft/WinAppDriver/issues/100 uchun Buni java'da qilsam, WinAppDriver yaxshi boshlanadi (selenyum-java v. 3.2.0, appium java-client v 5.0.0-BETA5), hamma narsa yaxshi ishlaydi.
qo'shib qo'ydi muallif Zaziro, manba
Ha, C: \ Program Files (x86) \ Windows Application Driver dasturini ishga tushirdim. Bundan tashqari men faqat 10 g'alaba qozonganman. Men jeremylindsayni.wordpress.com/2016/11/18/… . Lekin bu men uchun ishlamadi.
qo'shib qo'ydi muallif PB13, manba

WinAppDriverni birinchi navbatda o'rnatdingizmi? https://github.com/Microsoft/WinAppDriver/releases , WindowsApplicationDriver.msi

Eslatma: hozirda faqatgina Win 10 uchun.

0
qo'shib qo'ydi
BTW bilan bog'liq bo'lgan narsa topildi: github.com/Microsoft/WinAppDriver/issues/100 uchun Buni java'da qilsam, WinAppDriver yaxshi boshlanadi (selenyum-java v. 3.2.0, appium java-client v 5.0.0-BETA5), hamma narsa yaxshi ishlaydi.
qo'shib qo'ydi muallif Zaziro, manba
Ha, C: \ Program Files (x86) \ Windows Application Driver dasturini ishga tushirdim. Bundan tashqari men faqat 10 g'alaba qozonganman. Men jeremylindsayni.wordpress.com/2016/11/18/… . Lekin bu men uchun ishlamadi.
qo'shib qo'ydi muallif PB13, manba

WinAppDriverni birinchi navbatda o'rnatdingizmi? https://github.com/Microsoft/WinAppDriver/releases , WindowsApplicationDriver.msi

Eslatma: hozirda faqatgina Win 10 uchun.

0
qo'shib qo'ydi
BTW bilan bog'liq bo'lgan narsa topildi: github.com/Microsoft/WinAppDriver/issues/100 uchun Buni java'da qilsam, WinAppDriver yaxshi boshlanadi (selenyum-java v. 3.2.0, appium java-client v 5.0.0-BETA5), hamma narsa yaxshi ishlaydi.
qo'shib qo'ydi muallif Zaziro, manba
Ha, C: \ Program Files (x86) \ Windows Application Driver dasturini ishga tushirdim. Bundan tashqari men faqat 10 g'alaba qozonganman. Men jeremylindsayni.wordpress.com/2016/11/18/… . Lekin bu men uchun ishlamadi.
qo'shib qo'ydi muallif PB13, manba

Bilaman, javobim juda kech

Men faqat boshqalarni bilishni istadim Appiumda ishlatiladigan dasturning haydovchilik guvohnomasi juda eski (0,7), shuning uchun to'g'ridan-to'g'ri GitHub (0.9)

0
qo'shib qo'ydi

Bilaman, javobim juda kech

Men faqat boshqalarni bilishni istadim Appiumda ishlatiladigan dasturning haydovchilik guvohnomasi juda eski (0,7), shuning uchun to'g'ridan-to'g'ri GitHub (0.9)

0
qo'shib qo'ydi

Bilaman, javobim juda kech

Men faqat boshqalarni bilishni istadim Appiumda ishlatiladigan dasturning haydovchilik guvohnomasi juda eski (0,7), shuning uchun to'g'ridan-to'g'ri GitHub (0.9)

0
qo'shib qo'ydi

Appium versiyasi va deraza drayveri qattiqligicha bog'liqligini tushunib etdim. Stol ilovasi orqali appium o'rnatilganda u ishlamaydi. Noto'g'ri versiyani olasiz.

O'rnatishda siz appdata/temp papkasida Windows drayverini yuklaydi. Uni olib tashlashingiz kerak.

Nmp orqali appium ni o'rnatishda u yaxshi ishlaydi, bu to'g'ri oyna drayverini yuklaydi.

Temp papkasini yuklab olmasangiz, u ham bu ishga yaroqsiz bo'ladi, chunki u Windows drayverini oladi ...

0
qo'shib qo'ydi

Appium versiyasi va deraza drayveri qattiqligicha bog'liqligini tushunib etdim. Stol ilovasi orqali appium o'rnatilganda u ishlamaydi. Noto'g'ri versiyani olasiz.

O'rnatishda siz appdata/temp papkasida Windows drayverini yuklaydi. Uni olib tashlashingiz kerak.

Nmp orqali appium ni o'rnatishda u yaxshi ishlaydi, bu to'g'ri oyna drayverini yuklaydi.

Temp papkasini yuklab olmasangiz, u ham bu ishga yaroqsiz bo'ladi, chunki u Windows drayverini oladi ...

0
qo'shib qo'ydi

Appium versiyasi va deraza drayveri qattiqligicha bog'liqligini tushunib etdim. Stol ilovasi orqali appium o'rnatilganda u ishlamaydi. Noto'g'ri versiyani olasiz.

O'rnatishda siz appdata/temp papkasida Windows drayverini yuklaydi. Uni olib tashlashingiz kerak.

Nmp orqali appium ni o'rnatishda u yaxshi ishlaydi, bu to'g'ri oyna drayverini yuklaydi.

Temp papkasini yuklab olmasangiz, u ham bu ishga yaroqsiz bo'ladi, chunki u Windows drayverini oladi ...

0
qo'shib qo'ydi
NodeJS Uzbekistan
NodeJS Uzbekistan
152 ishtirokchilar

Guruh NodeJS bo'yicha muloqot qilish uchun ochilgan. Sizni qiziqtirsa: @nodejs_uz @react_uz @angular_uz @yiiframework_uz @js_uzb @typescript_uzb @vuejs_uz @ngTashkent @laravel_uz @uzdevgroup Ish o'rinlari @UzDev_jobs

Javascript UZB
Javascript UZB
99 ishtirokchilar

@js_uzb @vuejs_uz @react_uz @nodejs_uz @angular_uz @ngTashkent @yiiframework_uz @laravel_uz @linux_uzbek @python_uz @swift_uzb —————— @uzdevgroup @UzGeeksGroup ——— @UzDev_Jobs @jobs_uzb