Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

Unable to click the File Browse control

SA-105764

Summary

Unable to click the File Browse control. This occurs while using the Universal Web adapter.


Error Messages

Not Applicable


Steps to Reproduce

  1. Create a control for button element where input type = "file"(choose file)
  2. Invoke the PerformClick method on the control created


Root Cause



It is a limitation with the Chrome browser. The user is not allowed to click the Choose File button programmatically without user activation on the button.

Resolution



Perform the following local-change:
  1. Create windowsAdapter for chrome.exe
  2. Interrogate the frame using the Windows interrogation frame
  3. Invoke the Focus method on the choose file control
  4. Invoke the Sendkeys method on .Interrogated frame 

Published April 15, 2020 - Updated December 2, 2021

Was this useful?

0% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us