SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 6 of 6
  1. #1
    Member
    Join Date
    Sep 2007
    Location
    Australia
    Posts
    319
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    silly question but I have searched-how do you get the current browser name?

    I am trying to find the page and browser name of the Active browser/page but cannot find the code in the forum

    Can anyone help me?

    trying to get this collection and it cannot find anything yet I know its there
    obj_WebLink ("name").value= "Accounts & billing"
    Set obj_WebLink = Description.Create
    obj_WebLink ("micclass").value = "Link"
    obj_WebLink ("name").value= "Accounts & billing"
    Set oColl = Browser("name:=" & strBrowser).Page("title:=" & strPage ).ChildObjects(obj_WebLink)

  2. #2
    Moderator
    Join Date
    Sep 2001
    Location
    Doncaster, UK
    Posts
    5,788
    Post Thanks / Like
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0
    brwName = Browser("micClass:=Browser").GetROProperty("Name")

    Page name is not always set so you will probably be better to use Page 'Title'

    pgTitle = Browser("micClass:=Browser").Page("micClass:=Page" ).GetROProperty("Title")


    Mark Smith.

  3. #3
    Member
    Join Date
    Sep 2007
    Location
    Australia
    Posts
    319
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0
    would putting the creation time help?

  4. #4
    Moderator
    Join Date
    Sep 2001
    Location
    Doncaster, UK
    Posts
    5,788
    Post Thanks / Like
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0
    If you have more than one concurrently open browser yes, if not it shouldn't make any difference.

    Mark Smith.

  5. #5
    Member
    Join Date
    Sep 2007
    Location
    Australia
    Posts
    319
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0
    With this site they have 2 instances of IE open up .....

  6. #6
    Moderator
    Join Date
    Sep 2001
    Location
    Doncaster, UK
    Posts
    5,788
    Post Thanks / Like
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0
    Then you can use:

    brwName1 = Browser("CreationTime:=0").GetROProperty("Name")
    brwName2 = Browser("CreationTime:=1").GetROProperty("Name")

    Mark Smith.

 

 

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 13.64%
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:18 AM.

Copyright BetaSoft Inc.