SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 3 of 3
  1. #1
    Junior Member
    Join Date
    Sep 2009
    Posts
    2
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Reading openurl text from a browser

    I am not having any fun trying to get QTP to get the property from my Browswer object's openurl property.
    I am fairly new to QTP so I am not wonderful at the syntax. Here is what I have:

    sBrowserName=Browser("Browser").GetROProperty("Bro wser",[in,openurl])

    It runs without error, but sBrowserName is always empty. I have tried this several different ways but never can get it to pull the url information I need. Once I get this information into my variable I want to read the 1st 32 characters and add more to it so that I can run a test on a secondary browser window and this was the only way I could think of to get QTP to look at the secondary browser window.

    Anyone have any suggestions here? All assistance will be greatly appreciated. [img]/images/graemlins/confused.gif[/img]

  2. #2
    SQA Knight
    Join Date
    Jun 2008
    Posts
    2,555
    Post Thanks / Like
    Mentioned
    3 Post(s)
    Tagged
    1 Thread(s)
    Total Downloaded
    0

    Re: Reading openurl text from a browser

    .GetROProperty("openurl")

  3. #3
    Junior Member
    Join Date
    Sep 2009
    Posts
    2
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Reading openurl text from a browser

    Never mind, I think I figured it out. I changed it to say:

    sBrowserName=Browser("Browser").GetROProperty("ope nurl")

    This worked. I am pretty sure in all my tries I tried it this way and the stupid thing wasn't giving me the URL like I wanted but I am grateful it worked this time. Hopefully this will be of some use to someone else at some point.

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Search Engine Optimisation provided by DragonByte SEO v2.0.36 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 11.54%
vBulletin Optimisation provided by vB Optimise v2.6.4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.2.8 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 08:22 AM.

Copyright BetaSoft Inc.