So i'm using this code but if the web is HTTP it opens on IE instead of Edge.
var ieOptions = new InternetExplorerOptions();
ieOptions.EdgeExecutablePath = "C:/Program Files (x86)/Microsoft/Edge/Application/msedge.exe";
IWebDriver driver = new InternetExplorerDriver(ieOptions);
driver.Url = "some http web";
is there a way to force it on edge?
You need to download Microsoft Edge Driver and use that. The name of the class your code currently uses should give you a hint about why Internet Explorer is being opened:
It is right in the name: InternetExplorerDriver. You are using the web driver for Internet Explorer. If you want to automate Edge, you need to use EdgeDriver.
I think the curious thing is that Edge is launched when loading an HTTPS URL when using InternetExplorerDriver. I suspect there are Windows Policies installed that override Internet Explorer causing Edge to be launched instead.