Guest User

protractor zombie chromedriver

a guest
Nov 15th, 2017
195
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Steps to re-create protractor zombie chromedriver issue on Windows 10
  2.  
  3. /** create these files */
  4. // conf.js
  5. exports.config = {
  6.         framework: 'jasmine',
  7.         directConnect: true,
  8.         specs: ['spec.js'],
  9.         restartBrowserBetweenTests: true
  10. }
  11.  
  12.  
  13. // spec.js
  14. describe('Demo App', function() {
  15.         it('should have a title', function() {
  16.                 browser.get('http://angularjs.org/')
  17.                 expect(browser.getTitle()).toContain('JavaScript')
  18.         })
  19. })
  20. describe('Demo App', function() {
  21.         it('should have a title', function() {
  22.                 browser.get('http://angularjs.org/')
  23.                 expect(browser.getTitle()).toContain('JavaScript')
  24.         })
  25. })
  26. describe('Demo App', function() {
  27.         it('should have a title', function() {
  28.                 browser.get('http://angularjs.org/')
  29.                 expect(browser.getTitle()).toContain('JavaScript')
  30.         })
  31. })
  32. describe('Demo App', function() {
  33.         it('should have a title', function() {
  34.                 browser.get('http://angularjs.org/')
  35.                 expect(browser.getTitle()).toContain('JavaScript')
  36.         })
  37. })
  38. describe('Demo App', function() {
  39.         it('should have a title', function() {
  40.                 browser.get('http://angularjs.org/')
  41.                 expect(browser.getTitle()).toContain('JavaScript')
  42.         })
  43. })
  44. describe('Demo App', function() {
  45.         it('should have a title', function() {
  46.                 browser.get('http://angularjs.org/')
  47.                 expect(browser.getTitle()).toContain('JavaScript')
  48.         })
  49. })
  50. describe('Demo App', function() {
  51.         it('should have a title', function() {
  52.                 browser.get('http://angularjs.org/')
  53.                 expect(browser.getTitle()).toContain('JavaScript')
  54.         })
  55. })
  56. describe('Demo App', function() {
  57.         it('should have a title', function() {
  58.                 browser.get('http://angularjs.org/')
  59.                 expect(browser.getTitle()).toContain('JavaScript')
  60.         })
  61. })
  62. describe('Demo App', function() {
  63.         it('should have a title', function() {
  64.                 browser.get('http://angularjs.org/')
  65.                 expect(browser.getTitle()).toContain('JavaScript')
  66.         })
  67. })
  68. describe('Demo App', function() {
  69.         it('should have a title', function() {
  70.                 browser.get('http://angularjs.org/')
  71.                 expect(browser.getTitle()).toContain('JavaScript')
  72.         })
  73. })
  74. describe('Demo App', function() {
  75.         it('should have a title', function() {
  76.                 browser.get('http://angularjs.org/')
  77.                 expect(browser.getTitle()).toContain('JavaScript')
  78.         })
  79. })
  80.  
  81. /** open task manager and observe chromedriver instances */
  82.  
  83. /** run these commands
  84. $ npm i -S protractor
  85. $ node_modules/protractor/bin/webdriver-manager update
  86. $ node_modules/protractor/bin/protractor conf.js
  87. */
Advertisement
Add Comment
Please, Sign In to add comment