Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use named factory methods for WinAppDriver and its Capabilities. #91

Merged
merged 1 commit into from
Sep 11, 2023

Conversation

tristanlabelle
Copy link
Contributor

@tristanlabelle tristanlabelle commented Sep 10, 2023

Overloading initializers was not as clear and required putting the verb in the label of the first argument, which would not have worked for WinAppDriver.Capabilities.attachToDesktop since it takes no arguments. I think it's useful to distinguish between different operations clearly.

Also factored the different places where we use ProcessInfo to figure out standard windows paths into a WindowsSystemPaths type. This could eventually use SHGetKnownFolderPath instead of environment variables.

Fixes #81

@tristanlabelle tristanlabelle changed the title Use named constructors for WinAppDriver and its Capabilities. Use named factory methods for WinAppDriver and its Capabilities. Sep 10, 2023
@tristanlabelle tristanlabelle merged commit 65e710c into main Sep 11, 2023
1 check passed
@tristanlabelle tristanlabelle deleted the tristan/named-constructors branch September 11, 2023 15:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create WinAppDriver.Capabilities factory methods
2 participants