mercredi 1 juillet 2015

Protractor IE 11 Error - Failed to find element

Using the following syntax to find a username input text box,

browser.findElement(By.id('username'));

It works fine in Chrome and Firefox, but has the following error in IE 11:

    [internet explorer #3]   Message:
    [internet explorer #3]     Failed: Finding elements with id ==usernamereturned an unexpected error (WARNING: The server did not provide any stacktrace information)
    [internet explorer #3]     Command duration or timeout: 970 milliseconds
    [internet explorer #3]     For documentation on this error, please visit: http://ift.tt/1c3pd29
    [internet explorer #3]     Build info: version: '2.45.0', revision: '5017cb8', time: '2015-02-26 23:59:50'
    [internet explorer #3]     System info: host: 'dev-web-01', ip: '10.126.1.32', os.name: 'Windows Server 2012 R2', os.arch: 'amd64', os.version: '6.3', java.version: '1.8.0_45'
    [internet explorer #3]     Driver info: org.openqa.selenium.ie.InternetExplorerDriver
    [internet explorer #3]     Capabilities [{browserAttachTimeout=0, enablePersistentHover=true, ie.forceCreateProcessApi=false, pageLoadStrategy=normal, ie.usePerProcessProxy=false
    expectedAlertBehaviour=dismiss}]
    [internet explorer #3]     Session ID: d593cfc5-74a5-445a-b1b8-fcdf7c372786
    [internet explorer #3]     *** Element info: {Using=id, value=username}

I've followed the following two sites to configure IE: seleniumQuery Run Protractor Against Internet Explorer VM

Aucun commentaire:

Enregistrer un commentaire