automated-testsrobotframeworkselenium2library

I want to use my Robotframework to upload file but my fileupload fill has no ID


I want to upload my picture but my upload fill has no id because it's angular and my programer refuse to write some id for me .

The question is how can i locate my robot to fill for upload file ?? because i try to input some text and it is not working in anyway (sry for my bad eng skill this is my first time to ask something like this)

This is my html tag

    <input _ngcontent-yhb-c11 style="display: none;" type="file">

This is my robot code

Right Input test
Location Should Be  https://app.smartfinder.asia/operation/core/right/right-user-signup
Input Text    name=UserCode    ${Email}
Click Element    xpath=//*[contains(text(),'Adds')]
Click Element   xpath=//*[@class='signup-picture']
Choose File  xpath =//input[_ngcontent-ctj-c11]  C:\\Users\\User\\Desktop\\CabinetRB\\Reset passcode.PNG

I expect to upload my file but there is nothing happend and hope u guy will understand what i wanna say i'm new with this tool thx for the help


Solution

  • Ok i found how to resolve that solution i identify by using style="display: none;" so thx for helping Helio

    Choose File  xpath =//input[@style='display: none;']  C:\\Users\\User\\Desktop\\CabinetRB\\Reset passcode.PNG