nightwatch.conf.js 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. const seleniumServer = require("selenium-server");
  2. const chromedriver = require("chromedriver");
  3. module.exports = {
  4. "src_folders" : ["tests"],
  5. "output_folder" : "reports",
  6. "custom_commands_path" : "",
  7. "custom_assertions_path" : "",
  8. "page_objects_path" : "",
  9. "globals_path" : "",
  10. "selenium" : {
  11. "start_process" : true,
  12. "server_path" : seleniumServer.path,
  13. "log_path" : "",
  14. "port" : 4444,
  15. "cli_args" : {
  16. "webdriver.chrome.driver" : chromedriver.path,
  17. "webdriver.gecko.driver" : "",
  18. "webdriver.edge.driver" : ""
  19. }
  20. },
  21. "test_settings" : {
  22. "default" : {
  23. "launch_url" : "http://localhost",
  24. "selenium_port" : 4444,
  25. "selenium_host" : "localhost",
  26. "silent": true,
  27. "screenshots" : {
  28. "enabled" : false,
  29. "path" : ""
  30. },
  31. "globals": {
  32. "waitForConditionTimeout": 5000 // sometimes internet is slow so wait.
  33. },
  34. "desiredCapabilities": {
  35. "browserName": "chrome",
  36. "javascriptEnabled": true,
  37. "marionette": true
  38. }
  39. },
  40. "chrome" : {
  41. "desiredCapabilities": {
  42. "browserName": "chrome"
  43. }
  44. },
  45. "edge" : {
  46. "desiredCapabilities": {
  47. "browserName": "MicrosoftEdge"
  48. }
  49. }
  50. }
  51. };