Question

1
Replies
31
Views
DanB2381 Member since 2017 2 posts
Corporation Service Company
Posted: 2 years ago
Last activity: 2 years 6 months ago
Closed

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?

$x('//input[@type="file"]')

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

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

User Interface
Moderation Team has archived post
Share this page LinkedIn