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()"
18-10-22 04:12 PM
Rename the current href
attribute to onclick
Add return false;
to the end of the contents of the new onclick
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">