question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Element Not found error while installing

See original GitHub issue

Hi Vasily,

How are you doing…

i am facing an issue while trying to install Git with pywinauto. Below is sample code and error message can you please let me know what is causing issue.

from pywinauto.application import Application
import time
app = Application().start(r'C:\Users\Administrator\Desktop\Raja python\software\Git-2.9.3.2-64-bit.exe')
b = Application().connect(title = 'Git 2.9.3.2 Setup')
time.sleep(5)
b.Git_2_9_3_2_Setup.print_control_identifier()

Also i used as below but no luck,

b.Git_2_9_3_2_SetupDailog.print_control_identifier()

Error message:-

Traceback (most recent call last):
  File "C:/Users/Administrator/Desktop/Raja python/python practice/click_install.py", line 10, in <module>
    b = Application().connect(title = 'Git 2.9.3.2 Setup')
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\site-packages\pywinauto-0.6.5-py3.7.egg\pywinauto\application.py", line 965, in connect
    self.process = findwindows.find_element(**kwargs).process_id
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\site-packages\pywinauto-0.6.5-py3.7.egg\pywinauto\findwindows.py", line 87, in find_element
    raise ElementNotFoundError(kwargs)
pywinauto.findwindows.ElementNotFoundError: {'title': 'Git 2.9.3.2 Setup', 'backend': 'win32'}

Thanks, raja

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
airelilcommented, Nov 16, 2018

@rajarameshmamidi, if your goal is to perform unattended installation, maybe you could use some of the flags of the setup program to run it silently? image

0reactions
rajarameshmamidicommented, Nov 19, 2018

Thank you Vasily. i will go through Git Help for more details.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Fix 'Element Not Found' Error in Windows 10
7 Working Methods to Fix 'Element Not Found' Error in Windows 10 · Method 1: Remove/Uninstall Lenovo apps from your computer · Method...
Read more >
How to fix "Element not found" error in Windows 10? - Auslogics
1. Undo Recent Updates. 2. Install Device Drivers Update. 3. Disable Your Anti-Virus Program.
Read more >
Printer driver was not installed, Element not found
You can begin troubleshooting to fix the Printer driver was not installed – Element not found error that occurred on your Windows 11/10...
Read more >
Element Not Found error in Windows 10/11 [Quick Fix]
How can I fix Element Not Found error in Windows 10? · 1. Uninstall recent updates · 2. Temporarily disable your antivirus ·...
Read more >
Printer driver was not installed. Element not found Fix Error
The solution for this problem is simple. First, you need to disable the driver signature enforcement feature on your Windows operating system, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found