How to verify the machine configuration using PhantomJS

satishdikku

I have PhantomJS being used by karma-phantom-launcher plugin on my local machine. I want to get the machine configuration whether it is 32 bit or 64 bit.

Similar to what we can do with node.js i.e. after running node we can simply type process.arch to get the machine configuration on which node is running.

Jobins John

The following code will meet your requirement

var system = require('system');
var os = system.os;
console.log(os.architecture);  // '32bit'
console.log(os.name);  // 'windows'
console.log(os.version);  // '7'

You will get the informations in the console....

이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.

침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제

에서 수정
0

몇 마디 만하겠습니다

0리뷰
로그인참여 후 검토

관련 기사

분류에서Dev

how to control users login on Linux machine according to configuration file

분류에서Dev

How to copy a file on remote machine using PySTAF

분류에서Dev

how to load an xmodmap configuration file using .xinitrc

분류에서Dev

How to verify zswap running?

분류에서Dev

How to verify if a list is sorted?

분류에서Dev

How to switch tabs using the expected conditions new_window_is_opened and verify the page title using Selenium and Python

분류에서Dev

How to use PhantomJS plugin in Jenkins?

분류에서Dev

How to Know Model Type using AWS Java SDK for Machine Learning

분류에서Dev

How to verify given string is valid JsonArray using a net.sf.json library

분류에서Dev

How to verify if a key is into array in Behat

분류에서Dev

How to zero a disk + verify it afterward?

분류에서Dev

How to take screenshot with Phantomjs without blur

분류에서Dev

Using password_verify on existing password

분류에서Dev

Using Python, how to download multiple files from a subdirectory on FTP server into a desired directory on local machine?

분류에서Dev

How to copy entire folder and subfolder from remote sever to local machine using PuTTY psftp

분류에서Dev

How can I prevent Windows from overwriting GRUB when using a dual-boot machine

분류에서Dev

How to verify if a reboot was due to power outage?

분류에서Dev

How to verify the integrity of a tar.gz file?

분류에서Dev

How to verify the user input in a textfield to compare it with a variable?

분류에서Dev

How to patch and verify if a Class was instantiated with a specific parameter?

분류에서Dev

How to verify checksums on-line in brtfs?

분류에서Dev

How to verify if specific date is monday in php

분류에서Dev

Remove Virtualbox's lower machine configuration bar in a running VM?

분류에서Dev

Is there a way to verify if e-mail was delivered only using SSL connection?

분류에서Dev

How to load multiple configuration file from classpath using @ImportResource annotation in Spring

분류에서Dev

How to run appfacotry in local machine?

분류에서Dev

How to DRY nginx configuration

분류에서Dev

How to remove configuration key in `dpkg' configuration files

분류에서Dev

using admin configuration in model file

Related 관련 기사

  1. 1

    how to control users login on Linux machine according to configuration file

  2. 2

    How to copy a file on remote machine using PySTAF

  3. 3

    how to load an xmodmap configuration file using .xinitrc

  4. 4

    How to verify zswap running?

  5. 5

    How to verify if a list is sorted?

  6. 6

    How to switch tabs using the expected conditions new_window_is_opened and verify the page title using Selenium and Python

  7. 7

    How to use PhantomJS plugin in Jenkins?

  8. 8

    How to Know Model Type using AWS Java SDK for Machine Learning

  9. 9

    How to verify given string is valid JsonArray using a net.sf.json library

  10. 10

    How to verify if a key is into array in Behat

  11. 11

    How to zero a disk + verify it afterward?

  12. 12

    How to take screenshot with Phantomjs without blur

  13. 13

    Using password_verify on existing password

  14. 14

    Using Python, how to download multiple files from a subdirectory on FTP server into a desired directory on local machine?

  15. 15

    How to copy entire folder and subfolder from remote sever to local machine using PuTTY psftp

  16. 16

    How can I prevent Windows from overwriting GRUB when using a dual-boot machine

  17. 17

    How to verify if a reboot was due to power outage?

  18. 18

    How to verify the integrity of a tar.gz file?

  19. 19

    How to verify the user input in a textfield to compare it with a variable?

  20. 20

    How to patch and verify if a Class was instantiated with a specific parameter?

  21. 21

    How to verify checksums on-line in brtfs?

  22. 22

    How to verify if specific date is monday in php

  23. 23

    Remove Virtualbox's lower machine configuration bar in a running VM?

  24. 24

    Is there a way to verify if e-mail was delivered only using SSL connection?

  25. 25

    How to load multiple configuration file from classpath using @ImportResource annotation in Spring

  26. 26

    How to run appfacotry in local machine?

  27. 27

    How to DRY nginx configuration

  28. 28

    How to remove configuration key in `dpkg' configuration files

  29. 29

    using admin configuration in model file

뜨겁다태그

보관