Skip to main content
New Participant
Apr 22, 2021 3:23 PM UTC
Question

Appian Selenium API

Hi

I'm using the AppianSelenium API framework in Eclipse.
On one of my web pages, I need to upload a document.
I use the code below to click the upload button (Called UPLOAD):

fixture.clickOnButton("UPLOAD");

... and a Windows dialog box appears allowing me to navigate to the document I want.

Question: How do I interact with the Windows dialog box so the automation can find the file I want to upload?

Thanks

    2 replies

    New Participant
    Jun 24, 2021 7:04 PM UTC

    I had the same issue. Is there any solution for this upload problem?

    acaciob0002
    Participating Frequently
    Jun 25, 2021 12:18 AM UTC

    Hi Daniely,

    Im not so sure about selenium, however in cucumber instead you interact with the windows you can upload files using the functions. Please see the cucumber samples below:

    tempoFixture.populateFieldWith("fieldType","fieldName","fieldValue")

    tempoFixture.populateFieldWith("FILE_UPLOAD", "Document File Upload", "C:\\Testing\\test_file\\img.jpg");

     

    As using Fitinesse you can achieve the same result using the command below:

    |populate|FILE_UPLOAD|field|Document File Upload|with|C:\\Testing\\test_file\\img.jpg|

    I hope that this help you with selenium.

    Regards,

    Acacio B.