"No Keyword with name" error while using AutoIt Library Robot Framework



  • Got an error encountered "No keyword name" error in AutoIt Library Robot Framework. I installed the AutoIt Library by using pip install and it was successful. I tried to automate input text in the Open Dialog Window to upload some file using AutoIt Library, but it won't run the keyword from AutoIt, it shows No keyword name.

    Here is my code :

    
    *** Settings ***
    Documentation   This is the script for Create Sales Visit Repository
    Library     AutoItLibrary
    
    *** Test Cases ***
    
    Input Text
        Send        C:\Users\ruela\Documents\Different images format\BMP.bmp
    

    ====================================================================

    Or anything that can suggest uploading a file using robot framework, it's ok, since the Choose File from selenium library cannot be used because of the open dialog window is not related to the web application.



  • Updated:

    Even I faced the issue in recent versions of auto it and python:

    Fix:

    Check your python architecture ( is it 32 or 64 bit)

    Just type python and see

    enter image description here

    For 32:

    1. Open cmd in "Run as administrator" mode
    2. run the command pip install robotframework-autoitlibrary
    3. Now clone the autoit library source code: nokia/robotframework-autoitlibrary.
    4. in the root directory run the below command: python setup.py install using cmd in admin mode

    to navigate to root directory use the command pushd ' instead of cd ` if cd doesn't work in cmd opened in admin mode.

    For 64:

    1. Open cmd in "Run as administrator" mode
    2. Now clone the autoit library source code: nokia/robotframework-autoitlibrary.
    3. in the root directory run the below command: python setup.py install using cmd in admin mode

    to navigate to root directory use the command pushd ' instead of cd ` if cd doesn't work in cmd opened in admin mode.

    You can install 64 bit python at:

    Install 64-bit python , the default version is 32 so you ahve to downlad the 64 bit download file from: Python Releases for Windows

    and download Windows x86-64 executable installer

    and install it.

    Check if 64 bit is installed:

    enter image description here

    Your code works fine for me :

    Installed package :

    Open cmd in "Run as administrator mode" and run below command

    pip install robotframework-autoitlibrary
    

    test.robot

    *** Settings ***
    Documentation   This is the script for Create Sales Visit Repository
    Library     AutoItLibrary
    
    *** Test Cases ***
    
    Input Text
        Send        C:\\Users\\ruela\\Documents\\Different images format\\BMP.bmp
    

    Ran as

    robot test.robot
    


Suggested Topics