angular / protractor

E2E test framework for Angular apps
http://www.protractortest.org
MIT License
8.75k stars 2.31k forks source link

Not able to run protractor scripts in ie browser 11 Windows 10 64 bit OS #5314

Open praveenngp15 opened 4 years ago

praveenngp15 commented 4 years ago

Hi Team,

Created a protractor script for ie browser.

It is not performing any actions like sendkeys, click....

todo-spec.js describe('angularjs homepage todo list', function() { it('should add a todo', function() { browser.waitForAngularEnabled(false); browser.get('https://angularjs.org'); element(by.css('[value="add"]')).click(); element(by.model('todoList.todoText')).sendKeys('write first protractor test');

  var todoList = element.all(by.repeater('todo in todoList.todos'));
  expect(todoList.count()).toEqual(3);
  expect(todoList.get(2).getText()).toEqual('write first protractor test');

  // You wrote your first test, cross it off the list
  todoList.get(2).element(by.css('input')).click();
  var completedAmount = element.all(by.css('.done-true'));
  expect(completedAmount.count()).toEqual(2);
});

});

conf.js exports.config = { seleniumAddress: 'http://localhost:4444/wd/hub', capabilities:

    {
        // 'browserName': 'internet explorer',
        // 'ignoreProtectedModeSettings': true,
        // 'enableElementCacheCleanup': true,
        // 'unexpectedAlertBehaviour': 'dismiss',
        // "ie.forceCreateProcessApi": true,
        // "ie.browserCommandLineSwitches": "-private",
        // "ie.ensureCleanSession": "true",
        'browserName': 'internet explorer',
        'ignoreProtectedModeSettings': true,
        'platform': 'ANY',
        'version': '11',
    },

specs: ['todo-spec.js']

};

Browser is launched and url is loaded. After that send keys operations are not performing.

praveenngp15 commented 4 years ago

using below server driver

IEDriverServer_x64_3.15.0

image

praveenngp15 commented 4 years ago

image

HKEY_LOCAL_MACHINE\Software\Microsoft\Internet Explorer svcVersion REG_SZ 11.356.18362.0

miller45 commented 4 years ago

@praveenngp15 Have you tried it with non ie browsers? Because if you say browser.waitForAngularEnabled(false); you will have no success with angular pages

praveenngp15 commented 4 years ago

I tried in Chrome and firefox. It is working fine. Facing issue only in ie browser

ashishgoel88 commented 3 years ago

I am facing similar issue on Firefox as well. Can you please suggest me how did you make it work on Firefox? On chrome, everything is working fine.