Results 1 to 2 of 2
  1. #1
    Senior Member
    Join Date
    Sep 1999
    San Jose,CA,USA

    Setting a browser adress directly


    I have the following code snippet, in which I pass a
    url_string from one of several places. I simply want the
    browser I am working with to be directed to the physical url location.

    <font class="small">Code:</font><hr /><pre>
    edit_set ("address",url_string);
    obj_type ("address","&lt;kReturn&gt;");
    web_sync(2 * 60);
    </pre><hr />

    Up till now ignorance has been bliss, and this worked just fine. However lately there appears a situation where the entry gets all chopped up like:
    "http://www" &amp; url_string &amp; ".com"

    Which obviously messes up the target location, and my test case. Does anyone have a favorite all weather way to do this? Frankly I am surprised this stopped working ..
    Smoke me a kipper, I'll be back for breakfast!
    Richard Weth
    Sr. QA Engineer

  2. #2
    SQA Knight
    Join Date
    Jun 2002
    Cupertino, CA, USA

    Re: Setting a browser adress directly

    If you don't want to kill the existing browser and open a new one pointing to the desired url, you could try something like this:

    <font class="small">Code:</font><hr /><pre>win_type("{label: \"!.*Internet Explorer.*\",location: 0}","&lt;kAlt_L-f-o&gt;http:\\www.sqaforums.com&lt;kReturn&gt;");</pre><hr />



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
BetaSoft Inc.
All times are GMT -8. The time now is 06:01 PM.

Copyright BetaSoft Inc.