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

RPA.Windows Allow calling List Windows without getting process info #1132

Merged
merged 7 commits into from
Nov 21, 2023

Conversation

mikahanninen
Copy link
Member

No description provided.

@mikahanninen mikahanninen requested a review from cmin764 November 21, 2023 11:40
Copy link
Contributor

@cmin764 cmin764 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, left a couple of comments/questions, but no blocker nor strong opinion on them.

packages/core/src/RPA/core/windows/helpers.py Outdated Show resolved Hide resolved
packages/core/src/RPA/core/windows/helpers.py Outdated Show resolved Hide resolved
packages/core/src/RPA/core/windows/window.py Outdated Show resolved Hide resolved
@@ -17,6 +17,7 @@ class WindowsElementsMixin:

def __init__(self, locators_path: Optional[str] = None):
self.logger = logging.getLogger(__name__)
self.list_processes = True
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like a good way to control the library when we're about to decide if we want to list processes by PIDs or not.

But who/what sets this list_processes attribute (as False for e.g.) over the library object instance? And do you have a test/example showcasing the usage?

Copy link
Member Author

@mikahanninen mikahanninen Nov 21, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was planning to add keyword to Windows library to toggle this setting but obviously it requires first that this value exists in the core.

@mikahanninen mikahanninen merged commit bd34e59 into master Nov 21, 2023
12 checks passed
@mikahanninen mikahanninen deleted the feature/allow-bypassing-process-info branch November 21, 2023 13:39
@cmin764 cmin764 linked an issue Nov 21, 2023 that may be closed by this pull request
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.

Performance problem on the RPA.Windows.List Windows keyword
2 participants