Access to XMLHttpRequest at 'overwolf-extension://cghphpbjeabdkomiphingnegihoigeggcfphdofo/libs/angular.min.js.map' from origin 'http://localhost:54284' has been blocked by CORS policy: Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https.
After browsing online and looking for people with simillar issues, the solution i found online is to launch cef with the following chrome cli flag --disable-web-security
What are the available solutions for selenium & UI Automation that Overwolf supports?
is it possible to support the --disable-web-security flag?
@shir.brass We need to understand how important is it for your team. We have a lot of FR’s from Outplayed, and we need to prioritize. (anyway, we need also to check this issue with the R&D).
I moved the status to “Accepted.” But it might be temporarily… Just notify.
Hi @eransharv, this request is a top priority for us as we want to move foreword with our automation efforts - this is a blocker for any further progress in this area as we are unable to get Selenium to run.
Note that if there is any workaround or a different solution for automation that you know of, we are open for suggestions.
I brought (e2e test) automation up 3 years ago. Maybe Overwolf could start spending some resources nowadays with backing of Intel to find feasible solutions for test automation without having to run your app as an iframe.
(Although latest developments seem like that will be the preferred way for overwolf in the near future…)
By now we’re encouraged to treat overwolf apps as desktop apps, not web apps, but I wouldn’t really say it’s neither because of missing tooling on either end.
Running it in a browser and without games running and actual overwolf apis is often very different from running it as an overwolf app.
There was a change in the overwolf webserver api to allow CORS, maybe there is an approach to make it work through that. Im not deep enough into selenium to know the details unfortunately.
Is it possible to have selenium/automation tool x communicating through that?