nightwatch.conf.js 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. /* This file is part of AToMPM - A Tool for Multi-Paradigm Modelling
  2. * Copyright 2011 by the AToMPM team
  3. * See COPYING, COPYING.lesser, and README.md for full details
  4. */
  5. const chromedriver = require("chromedriver");
  6. const selenium_server = require("selenium-server");
  7. module.exports = {
  8. "src_folders" : ["tests"],
  9. "output_folder" : false,
  10. "custom_commands_path" : "",
  11. "custom_assertions_path" : "",
  12. "page_objects_path" : "",
  13. "globals_path" : "",
  14. "selenium" : {
  15. "start_process" : false,
  16. "server_path" : selenium_server.path,
  17. "log_path" : "",
  18. "port" : 4444,
  19. "cli_args" : {
  20. "webdriver.chrome.driver" : chromedriver.path,
  21. "webdriver.gecko.driver" : "",
  22. "webdriver.edge.driver" : ""
  23. }
  24. },
  25. "test_settings" : {
  26. "default" : {
  27. "launch_url" : "http://localhost",
  28. "selenium_port" : 4444,
  29. "selenium_host" : "localhost",
  30. "silent": true,
  31. "screenshots" : {
  32. "enabled" : false,
  33. "path" : ""
  34. },
  35. "globals": {
  36. "waitForConditionTimeout": 5000 // sometimes internet is slow so wait.
  37. },
  38. "desiredCapabilities": {
  39. "browserName": "chrome",
  40. "javascriptEnabled": true,
  41. "marionette": true
  42. }
  43. },
  44. "chrome" : {
  45. "desiredCapabilities": {
  46. "browserName": "chrome"
  47. }
  48. },
  49. "edge" : {
  50. "desiredCapabilities": {
  51. "browserName": "MicrosoftEdge"
  52. }
  53. }
  54. }
  55. };