cancel
Showing results for 
Search instead for 
Did you mean: 
PritamPoojari
Level 6
Status: New

To workaround a slower interaction with a Web Application in Blue Prism we have had to use Java Script injection.

We would like and enhancement in BluePRism to be able to retrieve function execution return values, or code injection return values as outputs within an object.

Currently, you can only put the code “in”, and not get anything back out from a webpage, it would be useful without a workaround, if there was some functionality implemented for this.

See details from dev team:


As we are trying to interact with elements on a webpage which will return values, such as the contents of the ‘innerHTML’ values of a field, the only current way to do this effectively is to do:

 

<element>.select();

Then sending a global “<{CTRL}C>{CTRL}”, and then extracting the value from the clipboard.

 

As this is not always 100% reliable, what it would be good to be able to do, is when invoking a method In JS, to be able to get the return values, so being able to inject a method such as:

 

                Function getText()

                                Var x = <selector>.innerHTML

                                if ( x  === “”) {

                                                return “Blank Value”

                                } else {

                                                return x

                                }

 

And being able to have x stored in a data variable that is output from the webpage directly into Blue Prism. As it’s possible to invoke the method / inject the javascript into the page, surely it must be possible to get a return value just as easily?