-
Notifications
You must be signed in to change notification settings - Fork 73
how do we pass edge option from serenity.property file ? #246
Comments
can any one help us ? does Serenity support new Edge Chromium? |
I don’t use Edge or Windows myself, so the best would be to look into the code and see what you need to do to add support for these options |
ok thank you |
Hi, I am working on serenity framework for UI automation, and I need to run my test on Edge browser as well, there are few which I am facing when I run on edge browser. I am using msedgedriver.exe(Chromium) Could you pls help with the edge options that I need to use in serenity properties file? Thanks in Advance |
@varmavg were you able to run yours tests successfully on microsoft edge chromium browser successfully.? |
yes we were able to run successful tests in Edge chromium. use edge chromium 32 bit driver (x86 version) https://developer.microsoft.com/en-us/microsoft-edge/tools/webdriver/ |
@varmavg Thanks for the quick response. |
(1) POM.xml here is my configurations
(2) Serenity.properties chromewebdriver.chrome.driver=C:\Automation\Drivers\chromedriver.exe edgewebdriver.edge.driver=C:\Automation\Drivers\msedgedriver.exe (3) installed 32bit Edge drive (compatible with you edge version) in above location. (4) run configuration |
@varmavg Thanks for the response. |
@kiranAdiga Have you tried to remove the path of the Edge webdriver of the serenity.conf. And put the following code in the object inheriting from PageObject and that all of your custom PageObject inherit from : static{
System.setProperty("webdriver.edge.driver", "your/path/to/the/webdriver/msedgedriver.exe");
} It worked for me. |
Does anyone know if this has been fixed as to be able to pass edgedriver within the serenity.config file like we do with other web drivers? |
i am also trying to pass edge driver from edge.properties file but it was not working for me and also i tried with webdriver manager it launching the browser of different version . errors [main] INFO net.serenitybdd.core.webdriver.driverproviders.ProvideNewDriver - Instantiating driver |
@moebius23 Hello could you please help me with the solution that you shared before?? |
No, is not working through Serenity.confing file. |
In my project, every part of the front have its PageObject inheriting from net.serenitybdd.core.pages.PageObject (example: NavigationPage, HeaderPage, ProductsPage, and so on). But they don't inherit directly. I have an object than inherit from PageObject, and every specialised Page inherit from. Let's call it MyProjectPage. Then the inheritance path should look like this: I have put the static block that we are talking about inside MyProductPage class, at the beginning. I hope it will work for you ! |
@moebius23 Thank you Sir!!!!! It worked perfect!!! |
Is there any update on this? |
It's an open source project: look in the code (EdgeDriverCapabilities and WhenConfiguringEdgeOptions, get an example working with your code, write up some documentation, and submit a PR to the documentation project. |
We are getting pop up message “we couldn’t load the extensions from:” when trying to open Edge (chromium).
We handled this in chrome like chrome.switches = -disable-extensions
Just wondering if there is there anything equivalent to chrome.switches in Edge chromium to provide options in sereity.properties ?
The text was updated successfully, but these errors were encountered: