Windows authentication popup of my application appears similar to this app https://www.engprod-charter.net/ I had used below code to handle window authentication popup in selenium using python.
from selenium import webdriver
import time
import win32com.client
driver=webdriver.Firefox()
driver.maximize_window()
driver.get('https://www.engprod-charter.net/')
shell = win32com.client.Dispatch("WScript.Shell")
shell.Sendkeys("username")
shell.Sendkeys("{TAB}")
shell.Sendkeys("password@123")
time.sleep(5)
shell.Sendkeys("{ENTER}")
time.sleep(2)
driver.quit()
But since I am using python 2.7.12 for Robot Framework, it seems win32com.client is not supported there. I want to know what library I have to use in Robot Framework to handle this scenario.
I am not asking complete solution as this is not the correct approach in stackoverflow, just want a hint what should I try to handle my scenario. Thanks
You can achieve your scenario using AutoItLibrary which handles window inputs and similar things. Basically controlling the entire GUI not just the browser.
First install AutoItLibrary for Robot Framework
Now include AutoItLibrary in Robot Framework
Let us know if this works, I would be interested to know
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With