-
Notifications
You must be signed in to change notification settings - Fork 8
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 #47 from FlaUI/basic-windows-extensions
Basic windows extensions
- Loading branch information
Showing
13 changed files
with
347 additions
and
9 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
namespace FlaUI.WebDriver.Models | ||
using System.Text.Json; | ||
|
||
namespace FlaUI.WebDriver.Models | ||
{ | ||
public class ExecuteScriptRequest | ||
{ | ||
public string Script { get; set; } = null!; | ||
public List<Dictionary<string, string>> Args { get; set; } = new List<Dictionary<string, string>>(); | ||
public List<JsonElement> Args { get; set; } = new List<JsonElement>(); | ||
} | ||
} |
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,10 @@ | ||
namespace FlaUI.WebDriver.Models | ||
{ | ||
public class WindowsClickScript | ||
{ | ||
public string? ElementId { get; set; } | ||
public int? X { get; set; } | ||
public int? Y { get; set; } | ||
public string? Button { get; set; } | ||
} | ||
} |
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,13 @@ | ||
namespace FlaUI.WebDriver.Models | ||
{ | ||
public class WindowsHoverScript | ||
{ | ||
public string? StartElementId { get; set; } | ||
public int? StartX { get; set; } | ||
public int? StartY { get; set; } | ||
public int? EndX { get; set; } | ||
public int? EndY { get; set; } | ||
public string? EndElementId { get; set; } | ||
public int? DurationMs { get; set; } | ||
} | ||
} |
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,10 @@ | ||
namespace FlaUI.WebDriver.Models | ||
{ | ||
public class WindowsKeyScript | ||
{ | ||
public int? Pause { get; set; } | ||
public string? Text { get; set; } | ||
public ushort? VirtualKeyCode { get; set; } | ||
public bool? Down { get; set; } | ||
} | ||
} |
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,11 @@ | ||
using FlaUI.WebDriver.Models; | ||
|
||
namespace FlaUI.WebDriver.Services | ||
{ | ||
public interface IWindowsExtensionService | ||
{ | ||
Task ExecuteClickScript(Session session, WindowsClickScript action); | ||
Task ExecuteHoverScript(Session session, WindowsHoverScript action); | ||
Task ExecuteKeyScript(Session session, WindowsKeyScript action); | ||
} | ||
} |
Oops, something went wrong.