Serenity Jar Versions combination Issue

63 views
Skip to first unread message

Saikat B

unread,
Dec 15, 2017, 7:33:59 PM12/15/17
to Serenity BDD Users Group

Team,

If i use below listed upgraded Serenity jars, i am having issues with IE initialization. it opens multiple instance of IE and never executes my script. However, if i use older versions, everything works fine in IE. I need to use upgraded versions to use new features of SERENITY. Please help me to resolve the version combinations. I am using gradle to build/execute the suite.


here are the versions i want to use:

dependencies {

 

       //These below versions open multiple browser instance

    testCompile 'net.serenity-bdd:serenity-core:1.8.1'

    testCompile 'net.serenity-bdd:serenity-junit:1.8.1'

    testCompile('net.serenity-bdd:serenity-cucumber:1.6.5')

 

       //These below older jars combination works for IE but I want to use upgraded version

    //testCompile 'net.serenity-bdd:serenity-core:1.4.1-rc.6'

    //testCompile 'net.serenity-bdd:serenity-junit:1.4.1-rc.6'

    //testCompile('net.serenity-bdd:serenity-cucumber:1.1.6')

}

 

Below Error occurs for newer jars. 

Error on console:

Started InternetExplorerDriver server (32-bit)

2.53.0.0

Listening on port 9520

Only local connections are allowed

[main] WARN net.serenitybdd.core.webdriver.servicepools.InternetExplorerServicePool - Remote driver creation failed (Could not start a new session. Possible causes are invalid address of the remote server or browser start-up failure.), falling back on default driver creation

Started InternetExplorerDriver server (32-bit)

2.53.0.0

Listening on port 23988

Only local connections are allowed

[main] WARN net.serenitybdd.core.webdriver.driverproviders.InternetExplorerDriverProvider - Failed to start the Internet driver service, using a native driver instead - Could not start a new session. Possible causes are invalid address of the remote server or browser start-up failure.

Build info: version: '3.7.1', revision: '8a0099a', time: '2017-11-06'

Driver info: driver.version: InternetExplorerDriver

Started InternetExplorerDriver server (32-bit)

2.53.0.0

Listening on port 21214

Only local connections are allowed

[main] ERROR net.thucydides.core.webdriver.WebDriverFacade - FAILED TO CREATE NEW WEBDRIVER_DRIVER INSTANCE class org.openqa.selenium.ie.InternetExplorerDriver: Could not instantiate new WebDriver instance of type class org.openqa.selenium.ie.InternetExplorerDriver (Could not start a new session. Possible causes are invalid address of the remote server or browser start-up failure.

Build info: version: '3.7.1', revision: '8a0099a', time: '2017-11-06'

Driver info: driver.version: InternetExplorerDriver

net.thucydides.core.webdriver.UnsupportedDriverException: Could not instantiate new WebDriver instance of type class org.openqa.selenium.ie.InternetExplorerDriver (Could not start a new session. Possible causes are invalid address of the remote server or browser start-up failure.

Build info: version: '3.7.1', revision: '8a0099a', time: '2017-11-06'

Driver info: driver.version: InternetExplorerDriver


Thanks,

Saikat Barua

Troy Best

unread,
Feb 19, 2018, 7:16:10 AM2/19/18
to Serenity BDD Users Group
It is possible you do not have a compatible version of InternetExplorerDriver. Also, the latest stable release of serenity-bdd is 1.8.21 and serenity-cucumber is 1.6.10.
Reply all
Reply to author
Forward
0 new messages