Когда я пытаюсь запустить тестовый скрипт с помощью Protractor / Appium, на моем мобильном устройстве браузер сразу открывается и закрывается.ниже приведена конфигурация для мобильного телефона:
exports.config = {
framework: 'jasmine',
seleniumAddress: 'http://localhost:4723/wd/hub',
specs: ['./FCPS/esy-Mobile.js'],
jasmineNodeOpts: {
defaultTimeoutInterval: 30000
},
capabilities: {
'browserName': 'chrome',
'appium-version':'1.10.0',
'platformName': 'android',
'platformVersion': '8.0',
'deviceName': 'ce09171920d3e232027e',
},
Ниже приведен журнал для запуска:
> I/update - selenium standalone: file exists C:\FCPS_I\node_modules\protractor\node_modules\webdriver-manager\selenium\selenium-server-standalone-3.141.59.jar
[18:30:11] I/update - selenium standalone: selenium-server-standalone-3.141.59.jar up to date
[18:30:11] I/update - chromedriver: file exists C:\FCPS_I\node_modules\protractor\node_modules\webdriver-manager\selenium\chromedriver_2.45.zip
[18:30:11] I/update - chromedriver: unzipping chromedriver_2.45.zip
[18:30:11] I/update - chromedriver: chromedriver_2.45.exe up to date
[18:30:11] I/update - geckodriver: file exists C:\FCPS_I\node_modules\protractor\node_modules\webdriver-manager\selenium\geckodriver-v0.23.0.zip
[18:30:11] I/update - geckodriver: unzipping geckodriver-v0.23.0.zip
[18:30:11] I/update - geckodriver: geckodriver-v0.23.0.exe up to date
[18:30:12] I/launcher - Running 1 instances of WebDriver
[18:30:12] I/hosted - Using the selenium server at http://localhost:4723/wd/hub
[18:30:30] E/launcher - An unknown server-side error occurred while processing the command. Original error: Failed to start Chromedriver session: A new session could not be created. Details: session not created: please close 'com.micr
osoft.emmx' and try again
(Driver info: chromedriver=2.45.615291 (ec3682e3c9061c10f26ea9e5cdcf3c53f3f74387),platform=Windows NT 10.0.17134 x86_64)
[18:30:30] E/launcher - WebDriverError: An unknown server-side error occurred while processing the command. Original error: Failed to start Chromedriver session: A new session could not be created. Details: session not created: please
close 'com.microsoft.emmx' and try again
(Driver info: chromedriver=2.45.615291 (ec3682e3c9061c10f26ea9e5cdcf3c53f3f74387),platform=Windows NT 10.0.17134 x86_64)
at Object.checkLegacyResponse (C:\FCPS_I\node_modules\selenium-webdriver\lib\error.js:546:15)
at parseHttpResponse (C:\FCPS_I\node_modules\selenium-webdriver\lib\http.js:509:13)
at doSend.then.response (C:\FCPS_I\node_modules\selenium-webdriver\lib\http.js:441:30)
at process._tickCallback (internal/process/next_tick.js:68:7)
From: Task: WebDriver.createSession()
at Function.createSession (C:\FCPS_I\node_modules\selenium-webdriver\lib\webdriver.js:769:24)
at Function.createSession (C:\FCPS_I\node_modules\selenium-webdriver\chrome.js:761:15)
at createDriver (C:\FCPS_I\node_modules\selenium-webdriver\index.js:170:33)
at Builder.build (C:\FCPS_I\node_modules\selenium-webdriver\index.js:626:16)
at Hosted.getNewDriver (C:\FCPS_I\node_modules\protractor\built\driverProviders\driverProvider.js:53:33)
at Runner.createBrowser (C:\FCPS_I\node_modules\protractor\built\runner.js:195:43)
at q.then.then (C:\FCPS_I\node_modules\protractor\built\runner.js:339:29)
at _fulfilled (C:\FCPS_I\node_modules\q\q.js:834:54)
at C:\FCPS_I\node_modules\q\q.js:863:30
at Promise.promise.promiseDispatch (C:\FCPS_I\node_modules\q\q.js:796:13)
Как я могу разрешить его и запустить свои тесты?Просьба помочь.