title: Replacing portion of a URL in HPE UFT / VBscript
body: <p>So I am trying to get a script to work that will obtain the current URL of the open tab, replace a portion of the URL, and enter in/navigate to the new URL which has the replaced text.</p>
  <p>I'm struggling with the replace function as well as how to launch the edited URL in the current tab.</p>
  <p>Here a rough idea of how I think it should look. If this worked worked it would open up a new browser with the new URL but I'd like it to be on the tab I'm currently in.</p>
  <p>Would I need to crate an object for the result of the replace function?</p>
  <p>If I were currently at</p>
  <pre><code>abc123.UZ.com/xaxsxa
  </code></pre>
  <p>I'd like to go to the page</p>
  <pre><code>xyz789.UZ.com/xaxsxa
  </code></pre>
  <p>Code:</p>
  <pre><code> Browser(&quot;Edge&quot;).Page(&quot;Loan#&quot;).WebButton(&quot;LoanConditions&quot;).Click
   Browser(&quot;Edge&quot;).Page(&quot;Loan#).GetROProperty(&quot;url&quot;) 
   Result = Browser(&quot;Edge&quot;).Page(&quot;Loan#&quot;).GetROProperty(&quot;url&quot;)
   replace (Result,&quot;abc123&quot;,&quot;xyz789&quot;)
   Systemutil.Run &quot;Chrome.exe&quot;, &quot;Result&quot;
  </code></pre>