Close popover
Dan Boudwin (DanB2381)
Corporation Service Company

Corporation Service Company
DanB2381 Member since 2017 2 posts
Corporation Service Company
Posted: March 9, 2018
Last activity: March 9, 2018

Unable to set focus on Attach File(s) modal dialog box's Select files(s) input element

Hi Swetha,

My understanding is that the Attach File(s) modal dialog box is a standard Pega component. Do you have a recommendation on how to set focus on the dialog box's input type=file element from within a script of Selenium commands? My objective is to have an automated process upload a file to that input element. In my script I have successfully accessed the dialog box's CloseModal, Cancel and Attach command buttons but the script cannot find the input type=file element.

When executed in the console, the XPath command below returns two input elements of type=file. Can you tell me which one is the element a file should be uploaded to and how to set focus on that element?


(2) [input#$PpyAttachmentPage$ppxAttachName, input#$PD_pxRenderPosts_pa1666267926730868pz$ppyFileName.file-upload]

***Edited by Moderator Marissa to close thread as duplicate***

User Experience
Moderation Team has archived post,
Close popover This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Question, please write a new Question.