Blueprism Click action unable to download Report from a portal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
13-10-22 10:57 PM
-
The portal I am accessing is built with Angular JS and it is directed to a WSFTP where the files to be downloaded are stored. Upon manually clicking the download button, the website opens and closes a new tab in split seconds to access the FTP and download the selected file. But when I use BluePrism Click action the download button is clicked but the opening and closing of a new tab to access the FTP doesn't occur and the download doesn't occur.
I have tried using Invoke and Insert Javascript functions and that is not working either. I used the function below;
"function clickMain(){ let downloadbtn = document.querySelectorAll('.toolbar-button'); downloadbtn[1].click(); }"
the function is then invoked using Invoke JS of Navigate stage
"clickMain()"
------------------------------
Shakirat Jimoh
RPA Developer
Waje Smart solutions
Africa/Lagos
------------------------------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
18-10-22 04:12 PM
This may be due to new Content Security Policy restrictions introduced for Manifest V3 browser extensions, including the v6.10.5 and v7.1.x Blue Prism browser extensions. This is a known issue documented in the Knowledge Base below:
There are a few workarounds others here in the Community have found worked to interact with these kinds of links under the terms of this new limitation, including:
- Using UIA Mode
- Using Region Mode
- If you can change the links themselves, you can use an onclick action instead of the href calling JS. This can be done as listed below:
-
Rename the current
href
attribute toonclick
-
Add
return false;
to the end of the contents of the newonclick
attribute -
Add a
href
attribute that has the value#
This should result in the current anchor tag of:
<a href="javascript:ProviderSearchScreen();">
being updated to
<a href="#" onclick="ProviderSearchScreen();return false">
------------------------------
Steve Boggs
Senior Product Support Engineer
Blue Prism
Austin, TX
------------------------------
