<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Blue Prism - Retrieve elements with Javascript from a new page in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Blue-Prism-Retrieve-elements-with-Javascript-from-a-new-page/m-p/70272#M22877</link>
    <description>&lt;P&gt;An HTML page retrieves search results in a new page(dialogue) from a Javascript function "ShowDialog_NoReturnValue" with parameters to another ASPX page. I can not retrieve the elements from this page. I have injected the Javascript code below, but it does not retrieve the data from the new page(dialogue). I have also detached and attached from the page. Any other suggestions?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt; function getScope(){
    if (document.getElementById('JSOutput') == null){
    var body = document.getElementsByTagName('body')[0];
    var text = document.createElement('input');
    text.id = 'JSOutput';
    text.style.display = 'none';
    body.insertBefore(text, body.firstChild);
    }
    else  {
        document.getElementById('JSOutput').innerText = '';
    }
    
    var a = document.getElementsByClassName('rgMasterTable CaptionTextInvisible');
    var c = '';
    for (var i =2; i&amp;lt;a.length;i++){
    var b = a&lt;I&gt;.textContent.trim().split('
');
        
        if(b[4].trim()!=='There are no records.'){
            console.log(b[0] + ' --- ' + b[4].trim());
            c = c + b[0]+':'+b[4].trim()+',';
        }
    }
    return c.slice(0, -1);
}
&lt;/I&gt;&lt;/CODE&gt;&lt;I&gt;&lt;/I&gt;&lt;/PRE&gt;

--------------------------------------------------&lt;BR /&gt;

&lt;B&gt;Disclaimer:&lt;/B&gt; This content was auto-posted from Stackoverflow. The original Stackoverflow question is here &lt;A href="https://stackoverflow.com/questions/64471249/blue-prism-retrieve-elements-with-javascript-from-a-new-page"&gt;Stackoverflow Post&lt;/A&gt;, posted by &lt;A href="https://stackoverflow.com/users/14489309/anton"&gt;Anton&lt;/A&gt;.</description>
    <pubDate>Thu, 22 Oct 2020 08:00:00 GMT</pubDate>
    <dc:creator>Digital_WorkerB</dc:creator>
    <dc:date>2020-10-22T08:00:00Z</dc:date>
    <item>
      <title>Blue Prism - Retrieve elements with Javascript from a new page</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Blue-Prism-Retrieve-elements-with-Javascript-from-a-new-page/m-p/70272#M22877</link>
      <description>&lt;P&gt;An HTML page retrieves search results in a new page(dialogue) from a Javascript function "ShowDialog_NoReturnValue" with parameters to another ASPX page. I can not retrieve the elements from this page. I have injected the Javascript code below, but it does not retrieve the data from the new page(dialogue). I have also detached and attached from the page. Any other suggestions?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt; function getScope(){
    if (document.getElementById('JSOutput') == null){
    var body = document.getElementsByTagName('body')[0];
    var text = document.createElement('input');
    text.id = 'JSOutput';
    text.style.display = 'none';
    body.insertBefore(text, body.firstChild);
    }
    else  {
        document.getElementById('JSOutput').innerText = '';
    }
    
    var a = document.getElementsByClassName('rgMasterTable CaptionTextInvisible');
    var c = '';
    for (var i =2; i&amp;lt;a.length;i++){
    var b = a&lt;I&gt;.textContent.trim().split('
');
        
        if(b[4].trim()!=='There are no records.'){
            console.log(b[0] + ' --- ' + b[4].trim());
            c = c + b[0]+':'+b[4].trim()+',';
        }
    }
    return c.slice(0, -1);
}
&lt;/I&gt;&lt;/CODE&gt;&lt;I&gt;&lt;/I&gt;&lt;/PRE&gt;

--------------------------------------------------&lt;BR /&gt;

&lt;B&gt;Disclaimer:&lt;/B&gt; This content was auto-posted from Stackoverflow. The original Stackoverflow question is here &lt;A href="https://stackoverflow.com/questions/64471249/blue-prism-retrieve-elements-with-javascript-from-a-new-page"&gt;Stackoverflow Post&lt;/A&gt;, posted by &lt;A href="https://stackoverflow.com/users/14489309/anton"&gt;Anton&lt;/A&gt;.</description>
      <pubDate>Thu, 22 Oct 2020 08:00:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Blue-Prism-Retrieve-elements-with-Javascript-from-a-new-page/m-p/70272#M22877</guid>
      <dc:creator>Digital_WorkerB</dc:creator>
      <dc:date>2020-10-22T08:00:00Z</dc:date>
    </item>
    <item>
      <title>RE: Blue Prism - Retrieve elements with Javascript from a new page</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Blue-Prism-Retrieve-elements-with-Javascript-from-a-new-page/m-p/70273#M22878</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Do below things&lt;BR /&gt;&lt;BR /&gt;1.Do send keys Ctrl A + Ctrl C on that window&lt;BR /&gt;2. use get clipboard action so you will get all data into text file.&lt;BR /&gt;3.use split lines action from utility string vbo (it will convert data into collection row)&lt;BR /&gt;4.Now use loop to use collection row ( you can identify your text after some header&amp;nbsp; like "policy holder name" is header after that row you will get "Policy holder name xyz")&lt;BR /&gt;&lt;BR /&gt;I hope it's easy and help you.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Nilesh&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Nilesh Jadhav &lt;BR /&gt;Senior RPA Specialist&lt;BR /&gt;ADP&lt;BR /&gt;India&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Fri, 30 Oct 2020 14:29:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Blue-Prism-Retrieve-elements-with-Javascript-from-a-new-page/m-p/70273#M22878</guid>
      <dc:creator>NileshJadhavBP</dc:creator>
      <dc:date>2020-10-30T14:29:00Z</dc:date>
    </item>
  </channel>
</rss>

