protractor icon indicating copy to clipboard operation
protractor copied to clipboard

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

Open praveenngp15 opened this issue 7 years ago • 5 comments

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 avatar Sep 12 '19 12:09 praveenngp15

using below server driver

IEDriverServer_x64_3.15.0

image

praveenngp15 avatar Sep 12 '19 12:09 praveenngp15

image

HKEY_LOCAL_MACHINE\Software\Microsoft\Internet Explorer svcVersion REG_SZ 11.356.18362.0

praveenngp15 avatar Sep 12 '19 12:09 praveenngp15

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

miller45 avatar Sep 25 '19 17:09 miller45

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

praveenngp15 avatar Nov 25 '19 10:11 praveenngp15

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.

ashishgoel88 avatar Mar 29 '21 07:03 ashishgoel88