nightwatch.conf.js 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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" : true,
  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. "chromeOptions": {
  43. "args" : ["--no-sandbox"],
  44. "w3c": false
  45. },
  46. }
  47. },
  48. "chrome" : {
  49. "desiredCapabilities": {
  50. "browserName": "chrome"
  51. }
  52. },
  53. "edge" : {
  54. "desiredCapabilities": {
  55. "browserName": "MicrosoftEdge"
  56. }
  57. }
  58. }
  59. };