-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
92ab789
commit 6ecc875
Showing
35 changed files
with
459 additions
and
466 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
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
62 changes: 0 additions & 62 deletions
62
src/DeviceRunners.UIAutomation.Playwright/AppiumAutomatedApp.cs
This file was deleted.
Oops, something went wrong.
18 changes: 0 additions & 18 deletions
18
src/DeviceRunners.UIAutomation.Playwright/AppiumAutomatedAppElement.cs
This file was deleted.
Oops, something went wrong.
84 changes: 0 additions & 84 deletions
84
src/DeviceRunners.UIAutomation.Playwright/AppiumAutomationFramework.cs
This file was deleted.
Oops, something went wrong.
43 changes: 0 additions & 43 deletions
43
src/DeviceRunners.UIAutomation.Playwright/AppiumAutomationOptionsBuilder.cs
This file was deleted.
Oops, something went wrong.
18 changes: 0 additions & 18 deletions
18
...IAutomation.Playwright/AutomatedBrowsers/Edge/AppiumAutomationOptionsBuilderExtensions.cs
This file was deleted.
Oops, something went wrong.
18 changes: 18 additions & 0 deletions
18
...omation.Playwright/AutomatedBrowsers/Edge/PlaywrightAutomationOptionsBuilderExtensions.cs
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,18 @@ | ||
namespace DeviceRunners.UIAutomation.Playwright; | ||
|
||
public static partial class PlaywrightAutomationOptionsBuilderExtensions | ||
{ | ||
public static PlaywrightAutomationOptionsBuilder AddMicrosoftEdge(this PlaywrightAutomationOptionsBuilder builder, string key, Action<EdgePlaywrightAutomatedAppOptionsBuilder> optionsAction) | ||
{ | ||
var optionsBuilder = new EdgePlaywrightAutomatedAppOptionsBuilder(key); | ||
|
||
optionsBuilder.AddDefaultPlaywrightCommands(); | ||
//optionsBuilder.AddDefaultAndroidPlaywrightCommands(); | ||
|
||
optionsAction(optionsBuilder); | ||
|
||
builder.AddApp(key, optionsBuilder.Build()); | ||
|
||
return builder; | ||
} | ||
} |
52 changes: 26 additions & 26 deletions
52
src/DeviceRunners.UIAutomation.Playwright/AutomationTestSuiteBuilderExtensions.cs
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 |
---|---|---|
@@ -1,34 +1,34 @@ | ||
//namespace DeviceRunners.UIAutomation.Playwright; | ||
namespace DeviceRunners.UIAutomation.Playwright; | ||
|
||
//public static class AutomationTestSuiteBuilderExtensions | ||
//{ | ||
// public static AutomationTestSuiteBuilder AddPlaywright(this AutomationTestSuiteBuilder builder, Action<PlaywrightAutomationOptionsBuilder> optionsAction) | ||
// { | ||
// var optionsBuilder = new PlaywrightAutomationOptionsBuilder(); | ||
public static class AutomationTestSuiteBuilderExtensions | ||
{ | ||
public static AutomationTestSuiteBuilder AddPlaywright(this AutomationTestSuiteBuilder builder, Action<PlaywrightAutomationOptionsBuilder> optionsAction) | ||
{ | ||
var optionsBuilder = new PlaywrightAutomationOptionsBuilder(); | ||
|
||
// optionsAction(optionsBuilder); | ||
optionsAction(optionsBuilder); | ||
|
||
// var playwright = new PlaywrightAutomationFramework( | ||
// optionsBuilder.Options, | ||
// optionsBuilder.Apps, | ||
// new CompositeLogger(optionsBuilder.Loggers)); | ||
var playwright = new PlaywrightAutomationFramework( | ||
optionsBuilder.Options, | ||
optionsBuilder.Apps, | ||
new CompositeLogger(optionsBuilder.Loggers)); | ||
|
||
// builder.AddAutomationFramework(playwright); | ||
builder.AddAutomationFramework(playwright); | ||
|
||
// return builder; | ||
// } | ||
return builder; | ||
} | ||
|
||
// class CompositeLogger : IPlaywrightDiagnosticLogger | ||
// { | ||
// private readonly List<IPlaywrightDiagnosticLogger> _loggers; | ||
class CompositeLogger : IPlaywrightDiagnosticLogger | ||
{ | ||
private readonly List<IPlaywrightDiagnosticLogger> _loggers; | ||
|
||
// public CompositeLogger(IEnumerable<IPlaywrightDiagnosticLogger> loggers) => | ||
// _loggers = loggers.ToList(); | ||
public CompositeLogger(IEnumerable<IPlaywrightDiagnosticLogger> loggers) => | ||
_loggers = loggers.ToList(); | ||
|
||
// public void Log(string message) | ||
// { | ||
// foreach (var logger in _loggers) | ||
// logger.Log(message); | ||
// } | ||
// } | ||
//} | ||
public void Log(string message) | ||
{ | ||
foreach (var logger in _loggers) | ||
logger.Log(message); | ||
} | ||
} | ||
} |
Oops, something went wrong.