serenity-bdd / serenity-cucumber

Cucumber integration for the Serenity BDD Reporting library
Other
78 stars 74 forks source link

How to make Serenity to use my custom defined Chrome Option ? #237

Open ManikandanSekhar opened 4 years ago

ManikandanSekhar commented 4 years ago

How to make Serenity to use my custom defined Chrome Option ?

For FireFox: I usually define as mentioned below

FirefoxProfile myProfile=new FirefoxProfile(); myProfile.setPreference("",);

Serenity.useFirefoxProfile(myProfile); Basically the above line is going to make sure that getDriver() is going to assigned with that properties

I would like to know How to make Serenity to use my custom defined Chrome Option ? so that getDriver() will be assigned with that properties .

for fireFox we have Serenity.useFirefoxProfile(myProfile); Do we have anything for chome ?

Any help is appreciated .