Skip to content

Commit

Permalink
minor restructuring of application flow.
Browse files Browse the repository at this point in the history
  • Loading branch information
ffMathy committed Mar 20, 2019
1 parent 2a90c29 commit 89338c3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public PuppeteerWebAutomationFrameworkInstance(
_domTunnel = domTunnel;
}

public string UserAgentName => GetType().Name;
public string UserAgentName => nameof(Puppeteer);

public bool IsNavigating => _pendingNavigationRequestCount > 0;

Expand Down
3 changes: 1 addition & 2 deletions src/FluffySpoon.Automation.Web.Sample/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,8 @@ static async Task Main(string[] args)
serviceCollection.AddJQueryDomSelector();

serviceCollection.AddPuppeteerWebAutomationFrameworkInstance(GetPuppeteerDriverAsync);

serviceCollection.AddSeleniumWebAutomationFrameworkInstance(GetFirefoxDriverAsync);
//serviceCollection.AddSeleniumWebAutomationFrameworkInstance(GetEdgeDriverAsync);
//serviceCollection.AddSeleniumWebAutomationFrameworkInstance(GetChromeDriverAsync);

var serviceProvider = serviceCollection.BuildServiceProvider();
var automationEngine = serviceProvider.GetRequiredService<IWebAutomationEngine>();
Expand Down

0 comments on commit 89338c3

Please sign in to comment.