Getting TypeError: UIAElementInfo object can be initialized with integer or IUIAutomationElement instance only!
See original GitHub issueHi,
I am new to Pywinauto and getting below error
Short Example of Code to Demonstrate the Problem
from pywinauto.application import Application
import time
import pyautogui
app=Application(backend='uia').start(r"C:\Program Files (x86)\blue8\client\B8Analyser.exe")
time.sleep(5)
app=Application(backend='uia').connect(title='Main Window',timeout=10)
w1 = app.window(best_match='Main Window').wrapper_object()
w2 = app.window(handle=w1)
ctrl = w2['TreeView']
c1 = ctrl.get_item([u'xd Explorer', u'Annotation_AugCrime']).click_input(button="left", double=True)
c2 = c1.sub_elements()
getting below error at c1 line:
TypeError: UIAElementInfo object can be initialized with integer or IUIAutomationElement instance only!
Specifications
- Pywinauto version: 0.6.8
- Python version and bitness: 3.8.2
- Platform and OS: windows 10
Issue Analytics
- State:
- Created 2 years ago
- Comments:9 (6 by maintainers)
Top Results From Across the Web
Getting TypeError: UIAElementInfo object can be initialized ...
Getting TypeError : UIAElementInfo object can be initialized with integer or IUIAutomationElement instance only.
Read more >Getting TypeError: UIAElementInfo object can be initialized with ...
Getting TypeError : UIAElementInfo object can be initialized with integer or IUIAutomationElement instance only! Hi,. I am new to Pywinauto and getting below ......
Read more >python/10658/pywinauto/pywinauto/uia_element_info.py
raise TypeError( "UIAElementInfo object can be initialized " + \. "with integer or IUIAutomationElement instance only!" ).
Read more >Access Embedded Objects Using UI Automation
This topic shows how Microsoft UI Automation can be used to expose objects embedded within the content of a text control.
Read more >Getting TypeError: UIAElementInfo object can be initialized with ...
pywinauto/pywinauto: Getting TypeError: UIAElementInfo object can be initialized with integer or IUIAutomationElement instance only!
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hi Vasily,
please find below full traceback of the error
@bharatrajs sorry for long waiting but I see that the error message is NOT from my branch. Can you please try with my branch again?
After installing my branch, please run your test and provide full traceback.