'Robot Framework Python - Unable to access the modal Input box

i wrote a robot Framework code to access an input box on Modal which open on a button click , but it open the model and says "input box" is not interactable . there is no iframe enclosing the Modal box and Modal box enclosed by div which only has class attriute.

Below is the code i wrote.

*** Settings ***
Library  Dialogs
Library  Selenium2Library

*** Variables ***
${browser}  Chrome
${url}    abc
${passwordmgt}  admin

*** Test Cases ***
OpenBrowserToCheck
    Selenium2Library.Open Browser  ${url}   ${browser}
GetInputFromUser
    [Documentation]    User to enter the Actual and Copied filename
    Get_UserNamePassword


*** Keywords ***
Get_UserNamePassword
    ${dbname} = Get Value From User     Input user name default

    Selenium2Library.Click Element  xpath://button[contains(., "Backup") and @data-db='${dbname}']
    click element  xpath://div[@class='modal-dialog']
    Selenium2Library.click element  xpath://div[@class='modal-dialog']//form[@id='form_backup_db']//div[@class='modal-body']//div[@class='form-group row']//div[@class='col-md-8 input-group']//input

Inspect Element



Solution 1:[1]

Try using two options on the the element you want to click:

 1. Click Button    xpath=element_xpath
 2. Press Keys      xpath=element_xpath         //13

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Sujit Neb