We have a windows application that embeds a Cefglue browser.
We are looking at writing a LeanFT test using C#, and we want to use application model.
I have two questions:
1) How do I instantiate the application model without the browser instance?
Most examples I see do this, but at the start of the windows application I don't have a browser yet. It only comes later. At the start I only have the windows application.
var browser = BrowserFactory.Attach(new BrowserDescription
Type = BrowserType.Chrome
var appModel = new MyApplicationModel(browser);
In our instance, as we use CEF, there is no "browser" per se, so it is not possible to pass that to the constructor of the application model.
Can someone please provide an example on how we can use Application model without browser?
2) How many application models should we have? One for each technology stack? One for each "functionality"? What is the adequate design?