I tried to write code to login using pywinauto and selenium, but my script is getting failed. I tried to find solution, but it seems there is no much info available on this.
from pywinauto import application
from selenium import webdriver
driver=webdriver.Chrome()
app=application.Application()
driver.get("https://google.co.in")//url for google only as an example
app = application.Application()
app.connect(backend="uia") // getting issue in this line, what to write under bracket to connect to opened browser?
app.window_().TypeKeys('username') // Is this proper way to type text in authentication window username field where cursor blinks by default?
I am getting below error message
pywinauto.findwindows.ElementAmbiguousError: There are 6 elements that match the criteria {'backend': u'win32'}
Note : For login to my application, windows authentication popup appears which cannot be handled in selenium, so need to handle it using other tool. I had a solution to it earlier which is not working now, I had asked it here Windows authentication code no longer working now