How to extract javascript link from website, which mentions as javascript:void(0). While using Uipath embedded data extractor. I am geeting this url javascript:void(0), instead original URL

How to extract javascript link from website, which mentions as javascript:void(0). While using Uipath embedded data extractor. I am getting this url javascript:void(0), instead original URL

Please someone help, what can be done and where it can be done.

1 Like

Do you mean getting the url of a webpage? If so you can do the following:

  1. create a text file with the following contents and save it somewhere e.g. “test.txt”

    function(e){
    return window.location.href;
    }

  2. in uipath use the inject js activity (you need to indicate the browser of the url you want to capture). Then pass in the url of the text file and assign a variable to the scriptOutput property. This variable will be the url of the website…