browsers.js 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. var desktop = {
  2. 'mac-chrome-latest' : ['OS X 10.12', 'chrome', '60.0'],
  3. 'mac-firefox-latest' : ['OS X 10.12', 'firefox', '54.0'],
  4. 'mac-safari-latest' : ['OS X 10.12', 'safari', '11.0'],
  5. 'mac-chrome-previous' : ['OS X 10.11', 'chrome', '59.0'],
  6. 'mac-firefox-previous' : ['OS X 10.11', 'firefox', '53.0'],
  7. 'mac-safari-previous' : ['OS X 10.11', 'safari', '10.0'],
  8. 'windows-chrome-latest' : ['Windows 10', 'chrome', '60.0'],
  9. 'windows-firefox-latest' : ['Windows 10', 'firefox', '54.0'],
  10. 'windows-edge-latest' : ['Windows 10', 'microsoftedge', '15.15063'],
  11. 'windows-ie-latest' : ['Windows 8.1', 'internet explorer', '11.0'],
  12. 'windows-chrome-previous' : ['Windows 8.1', 'chrome', '59.0'],
  13. 'windows-firefox-previous': ['Windows 8.1', 'firefox', '53.0'],
  14. 'windows-edge-previous' : ['Windows 10', 'microsoftedge', '14.14393'],
  15. 'linux-chrome-latest' : ['Linux', 'chrome', '48.0'],
  16. 'linux-firefox-latest' : ['Linux', 'firefox', '45.0'],
  17. 'linux-chrome-previous' : ['Linux', 'chrome', '47.0'],
  18. 'linux-firefox-previous' : ['Linux', 'firefox', '44.0']
  19. };
  20. var mobile = {
  21. 'ios-latest' : ['iPhone 7 Plus', 'iOS', '10.3', 'Safari'],
  22. 'ios-previous' : ['iPhone 6 Plus', 'iOS', '9.3', 'Safari'],
  23. 'android-latest' : ['Android GoogleAPI Emulator', 'Android', '7.1', 'Chrome'],
  24. 'android-previous' : ['Android GoogleAPI Emulator', 'Android', '6.0', 'Chrome']
  25. };
  26. Object.keys(desktop).forEach(function(key) {
  27. module.exports[key] = {
  28. base: 'SauceLabs',
  29. browserName: desktop[key][1],
  30. version: desktop[key][2],
  31. platform: desktop[key][0]
  32. };
  33. });
  34. Object.keys(mobile).forEach(function(key) {
  35. module.exports[key] = {
  36. base: 'SauceLabs',
  37. browserName: mobile[key][3],
  38. appiumVersion: '1.6.4',
  39. deviceName: mobile[key][0],
  40. deviceOrientation: 'portrait',
  41. platformVersion: mobile[key][2],
  42. platformName: mobile[key][1]
  43. };
  44. });