Skip to main content
April 22, 2021
Question

Appian Selenium API

  • April 22, 2021
  • 2 replies
  • 0 views

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

    June 24, 2021

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

    acaciob0002
    June 25, 2021

    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.