-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature/36 separate window and form (#39) +semver: feature
* Renamed namespaces and folders from "Windows" to "Forms" * Separate Form and Window classes * Extract interface from Form, add and update the tests * extract locators from the forms to reduce the code duplication * Update core lib, fix application session getting * Replace Application implementation references with interface, extend the IWindowsApplication interface * fix WindowsElementFinder to ensure that ElementStateProvider works as expected. Fix application tests * Update Aquality.Selenium.Core to the latest version and support changes * Add chrome test to check multiple windows * Update the test to pass on the Azure DevOps environment * add test to FindChildElement from the root-session element. corrected ElementFactory in the Element * Rework session supplier setting logic in elements and forms * update Aquality.Selenium.Core library and removed temporary fix at WindowsElementFinder +semver: feature
- Loading branch information
Showing
56 changed files
with
1,001 additions
and
389 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
29 changes: 27 additions & 2 deletions
29
Aquality.WinAppDriver/src/Aquality.WinAppDriver/Applications/IWindowsApplication.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,18 +1,43 @@ | ||
using Aquality.Selenium.Core.Applications; | ||
using Aquality.WinAppDriver.Actions; | ||
using OpenQA.Selenium.Appium.Windows; | ||
|
||
namespace Aquality.WinAppDriver.Applications | ||
{ | ||
/// <summary> | ||
/// Provides functionality to work with Windows application via WinAppDriver. | ||
/// </summary> | ||
public interface IWindowsApplication : IApplication | ||
{ | ||
/// <summary> | ||
/// Provides instance of Windows Driver for current application | ||
/// Provides instance of Windows Driver for current application. | ||
/// </summary> | ||
new WindowsDriver<WindowsElement> Driver { get; } | ||
|
||
/// <summary> | ||
/// Provides instance of Windows Driver for desktop session | ||
/// Provides instance of Windows Driver for desktop session. | ||
/// </summary> | ||
WindowsDriver<WindowsElement> RootSession { get; } | ||
|
||
/// <summary> | ||
/// Provides methods representing basic keyboard actions. | ||
/// </summary> | ||
IKeyboardActions KeyboardActions { get; } | ||
|
||
/// <summary> | ||
/// Provides methods representing basic mouse actions. | ||
/// </summary> | ||
IMouseActions MouseActions { get; } | ||
|
||
/// <summary> | ||
/// Launches an instance of the current application. | ||
/// </summary> | ||
/// <returns>Current application instance.</returns> | ||
IWindowsApplication Launch(); | ||
|
||
/// <summary> | ||
/// Closes current application and desktop sessions. | ||
/// </summary> | ||
void Quit(); | ||
} | ||
} |
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
Oops, something went wrong.