serenity-bdd / serenity-core

Serenity BDD is a test automation library designed to make writing automated acceptance tests easier, and more fun.
http://serenity-bdd.info
Other
718 stars 515 forks source link

IE or IE Mode in Edge Settings in Serenity.conf #3029

Open premjeeabraham opened 1 year ago

premjeeabraham commented 1 year ago

We recently upgraded our Serenity version to 3.5.1 and noticed that the Chrome and Edge options are not picking up from Serenity.properites file. So we moved to Serenity.conf files and it is working fine. But, we have some tests which runs on IE Mode on Edge, in which we invoke tests with IExplorer as webdriver, but serenity is failing to initialize browser with the below error - "DriverConfiguration WebDriver was unable to create a new instance of type class org.openqa.selenium.ie.InternetExplorerDriver WebDriver reported the following message: Could not start a new session. Response code 500. Message: No matching capability sets found.". When I remove the all capabilities from serenty.conf, it loads, but if there are Chrome and Edge options available in serenity.conf, it fails.

Like ms:edgeOptions and goog:chromeOptions, what is the equivalent for Internet Explorer ?

wakaleo commented 1 year ago

You'll need to check the Selenium docs for this (https://www.selenium.dev/documentation/webdriver/browsers/internet_explorer/) since IE is no longer being supported by Microsoft, your milage may vary with new features.

premjeeabraham commented 1 year ago

@wakaleo Thanks for the response. My question was specific to Serenity. With Serenity we are initializing WebDriver with options explicitly, I believe Serenity takes care of it. This serenity document https://serenity-bdd.github.io/docs/guide/driver_config provides details about how to configure options and preferences for Chrome, FireFox and Edge, but not for IE. Like ms:edgeOptions and goog:chromeOptions, is there an equivalent for Internet Explorer ?

udhaya2000 commented 10 months ago

@wakaleo Thanks for the response. My question was specific to Serenity. With Serenity we are initializing WebDriver with options explicitly, I believe Serenity takes care of it. This serenity document https://serenity-bdd.github.io/docs/guide/driver_config provides details about how to configure options and preferences for Chrome, FireFox and Edge, but not for IE. Like ms:edgeOptions and goog:chromeOptions, is there an equivalent for Internet Explorer ?

Hi @wakaleo , I am also looking for the same option. Did you managed to find a solution to run on IE mode in Edge browser ?

Pari22 commented 2 weeks ago

Hi @wakaleo, I am also looking for the same option to open IE mode in Edge Browser. What are the equivalent options? Thanks