-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from RohitM-IN/dev
release 0.0.0.3
- Loading branch information
Showing
10 changed files
with
327 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace SeleniumManager.Core.DataContract | ||
{ | ||
public class Browser | ||
{ | ||
public string Name { get; set; } | ||
public int TotalInstance { get; set; } = 0; | ||
public int AvailableInstance { get; set; } = 0; | ||
public bool IsExcluded { get; set; } = false; | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
using OpenQA.Selenium; | ||
using OpenQA.Selenium.Chrome; | ||
using OpenQA.Selenium.Chromium; | ||
using OpenQA.Selenium.Edge; | ||
using OpenQA.Selenium.Firefox; | ||
using OpenQA.Selenium.IE; | ||
using OpenQA.Selenium.Safari; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace SeleniumManager.Core.DataContract | ||
{ | ||
public class Options | ||
{ | ||
public ChromeOptions chromeOptions { get; set; } = GetChromeOptions(); | ||
public FirefoxOptions firefoxOptions { get; set; } = GetFirefoxOptions(); | ||
public EdgeOptions edgeOptions { get; set; } = GetEdgeOptions(); | ||
public InternetExplorerOptions internetExplorerOptions { get; set; } = GetInternetExplorerOptions(); | ||
public SafariOptions safariOptions { get; set; } = GetSafariOptions(); | ||
|
||
public static ChromeOptions GetChromeOptions() | ||
{ | ||
var chromeOptions = new ChromeOptions(); | ||
#if !DEBUG | ||
chromeOptions.AddArgument("headless"); | ||
#endif | ||
chromeOptions.AddArgument("disable-gpu"); | ||
chromeOptions.AddArgument("no-sandbox"); | ||
chromeOptions.AddArgument("--blink-settings=imagesEnabled=false"); | ||
return chromeOptions; | ||
} | ||
|
||
public static FirefoxOptions GetFirefoxOptions() | ||
{ | ||
var firefoxOptions = new FirefoxOptions(); | ||
#if !DEBUG | ||
firefoxOptions.AddArgument("headless"); | ||
#endif | ||
firefoxOptions.AddArgument("disable-gpu"); | ||
firefoxOptions.AddArgument("no-sandbox"); | ||
firefoxOptions.AddArgument("--blink-settings=imagesEnabled=false"); | ||
return firefoxOptions; | ||
} | ||
|
||
public static EdgeOptions GetEdgeOptions() | ||
{ | ||
var edgeOptions = new EdgeOptions(); | ||
#if !DEBUG | ||
edgeOptions.AddArgument("headless"); | ||
#endif | ||
edgeOptions.AddArgument("disable-gpu"); | ||
edgeOptions.AddArgument("no-sandbox"); | ||
edgeOptions.AddArgument("--blink-settings=imagesEnabled=false"); | ||
return edgeOptions; | ||
} | ||
|
||
public static InternetExplorerOptions GetInternetExplorerOptions() => new InternetExplorerOptions(); | ||
|
||
public static SafariOptions GetSafariOptions() => new SafariOptions(); | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.