How to handle windows authentication popup in Robot Framework RIDE?

前端 未结 2 656
没有蜡笔的小新
没有蜡笔的小新 2021-01-06 13:44

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 se

相关标签:
2条回答
  • 2021-01-06 14:00

    This can be easily done using Robot Class in java, which can be run in Robotframework test when required.

    i.e. A .jar which will function as handler for the windows authentication pop up.

    In RobotFramework you would just need to run a .jar which will handle your pop up.

    Just in case you are not used to Java, I can help you with a sample code.

    0 讨论(0)
  • 2021-01-06 14:18

    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

    1. Make sure you have python installed for 32 bit(say python 2.7.6)
    2. Install pywin32-217.win32-py2.7.exe for 32 bit from here
    3. Download AutoItLibrary and unzip the folder
    4. Open command prompt as Administrator and go to downloaded AautoItLibrary folder folder(cd...\AutoItLibrary-1.1.post1) and then write this command and hit enter python setup.py install

    Now include AutoItLibrary in Robot Framework Let us know if this works, I would be interested to know

    0 讨论(0)
提交回复
热议问题