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

Using element wrapper_object in multiple systems generated using pywinauto #1369

Open
Roboflex30 opened this issue Jan 15, 2024 · 0 comments

Comments

@Roboflex30
Copy link

Roboflex30 commented Jan 15, 2024

I got a wrapper while performing action using pywinauto.

Now I want to play it on a different system using the same wrapper on the same application.
Is it possible?
I am creating the wrappers using below code :-

Short Example of Code to Demonstrate the Problem

 from ctypes.wintypes import tagPOINT
 import pywinauto
 import time
 time.sleep(2)
 def get_ElementFromPoint(x,y):
     elem = pywinauto.uia_defines.IUIA().iuia.ElementFromPoint(tagPOINT(x, y))
     element = pywinauto.uia_element_info.UIAElementInfo(elem)
     wrapper = pywinauto.controls.uiawrapper.UIAWrapper(element)
     return wrapper

Specifications

  • Pywinauto version: 0.6.8
  • Python version and bitness: 3.11
  • Platform and OS: WinOS
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

No branches or pull requests

1 participant