Not able to setting up protractor with Appium in MacOs High Sierra
Hi,
I was trying to setup Protractor with Appium with the help of this document instruction.
After running this webdriver-manager start --android command, in the log i can see this message
Selenium Server is up and running
During the above command execution, the emulator is trying to start, but suddenly it's stopped and printed this in the console.
Hax is enabled
Hax ram_size 0x40000000
Failed to open vm 0
Failed to create HAX VM
No accelerator found.
failed to initialize HAX: Invalid argument
I saw same kind of error in this discussion
below is my console output
webdriver-manager --android start
[15:27:19] I/start - Starting android-24-google_apis-x86_64 on port 5554
[15:27:19] I/start - Starting appium server
[15:27:19] I/start - java -Dwebdriver.chrome.driver=/Users/Jithin/.nvm/versions/node/v8.9.2/lib/node_modules/protractor/node_modules/webdriver-manager/selenium/chromedriver_2.34 -Dwebdriver.gecko.driver=/Users/Jithin/.nvm/versions/node/v8.9.2/lib/node_modules/protractor/node_modules/webdriver-manager/selenium/geckodriver-v0.19.1 -jar /Users/Jithin/.nvm/versions/node/v8.9.2/lib/node_modules/protractor/node_modules/webdriver-manager/selenium/selenium-server-standalone-3.8.1.jar -port 4444
[15:27:19] I/start - seleniumProcess.pid: 805
15:27:20.854 INFO - Selenium build info: version: '3.8.1', revision: '6e95a6684b'
15:27:20.855 INFO - Launching a standalone Selenium Server
emulator: Requested console port 5554: Inferring adb port 5555.
> @ appium /Users/Jithin/.nvm/versions/node/v8.9.2/lib/node_modules/protractor/node_modules/webdriver-manager/selenium/appium-1.6.0
> appium "--port" "4723"
2017-12-13 15:27:21.713:INFO::main: Logging initialized @2364ms to org.seleniumhq.jetty9.util.log.StdErrLog
15:27:22.054 INFO - Using 'new FirefoxOptions()' is preferred to DesiredCapabilities.firefox()
15:27:22.280 INFO - Using 'new ChromeOptions()' is preferred to DesiredCapabilities.chrome()
15:27:22.292 INFO - Using 'new EdgeOptions()' is preferred to DesiredCapabilities.edge()
15:27:22.295 INFO - Driver class not found: com.opera.core.systems.OperaDriver
15:27:22.297 INFO - Using 'new OperaOptions()' is preferred to DesiredCapabilities.operaBlink()
15:27:22.304 INFO - Using 'new SafariOptions()' is preferred to DesiredCapabilities.safari()
15:27:22.307 INFO - Driver class not found: org.openqa.selenium.phantomjs.PhantomJSDriver
15:27:22.539 INFO - Driver provider class org.openqa.selenium.ie.InternetExplorerDriver registration is skipped:
registration capabilities Capabilities {browserName: internet explorer, ensureCleanSession: true, platform: WINDOWS, version: } does not match the current platform MAC
15:27:22.540 INFO - Driver provider class org.openqa.selenium.edge.EdgeDriver registration is skipped:
registration capabilities Capabilities {browserName: MicrosoftEdge, platform: WINDOWS, version: } does not match the current platform MAC
15:27:22.813 INFO - Using 'new ChromeOptions()' is preferred to 'DesiredCapabilities.chrome()
15:27:22.815 INFO - Using 'new EdgeOptions()' is preferred to 'DesiredCapabilities.edge()
15:27:22.815 INFO - Using 'new FirefoxOptions()' is preferred to 'DesiredCapabilities.firefox()
15:27:22.817 INFO - Using 'new OperaOptions()' is preferred to 'DesiredCapabilities.operaBlink()
15:27:22.819 INFO - Using 'new SafariOptions()' is preferred to 'DesiredCapabilities.safari()
15:27:23.040 INFO - Using the passthrough mode handler
2017-12-13 15:27:23.228:INFO:osjs.Server:main: jetty-9.4.7.v20170914
2017-12-13 15:27:23.288:WARN:osjs.SecurityHandler:main: [email protected]@2db7a79b{/,null,STARTING} has uncovered http methods for path: /
2017-12-13 15:27:23.300:INFO:osjsh.ContextHandler:main: Started o.s.j.s.ServletContextHandler@2db7a79b{/,null,AVAILABLE}
2017-12-13 15:27:23.740:INFO:osjs.AbstractConnector:main: Started ServerConnector@67b467e9{HTTP/1.1,[http/1.1]}{0.0.0.0:4444}
2017-12-13 15:27:23.741:INFO:osjs.Server:main: Started @4392ms
15:27:23.741 INFO - Selenium Server is up and running
Hax is enabled
Hax ram_size 0x40000000
Failed to open vm 0
Failed to create HAX VM
No accelerator found.
failed to initialize HAX: Invalid argument
(node:814) [DEP0022] DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.
[Appium] Welcome to Appium v1.6.0 (REV ec2f450b6e9e64e469cc9e7aeaaa418ab82ca607)
[Appium] Appium REST http interface listener started on 0.0.0.0:4723
So how to overcome this? any solution?
- Node Version:
v8.9.2 - Protractor Version:
5.2.1 - Operating System and Version
MacOs High Sierra(v 10.13.1)
i found the solution from below discussion(comment #51) and closing this.
https://issuetracker.google.com/issues/62395878