Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Unable to identify unque properties of chrome browser
#1
Not Solved
Hi

My task is to close all the Browsers execpt HP qc and my application browser which is in chrome,

iam using chrome 22

here the code

Code:
fncloseIEBrowsers
fnCloseChromeBrowsers

Function  fnCloseIEBrowsers()

    Dim objDesc, objmyBrowsColl,intItr,strBrowserName

    'systemutil.CloseProcessByName "chrome.exe"

    Set objDesc = Description.Create()
    objDesc("micclass").Value = "Browser"
    objDesc("version").Value ="internet explorer.*"
    objDesc("hasmenubar").value = "True"
    Set objmyBrowsColl = Desktop.ChildObjects(objDesc)
    For intItr =0 to objmyBrowsColl.Count -  1
            strBrowserName = objmyBrowsColl(intItr).GetROProperty("title")
            print  strBrowserName
        If InStr(1,strBrowserName,"HP Quality Center") Then
            Else
                objmyBrowsColl(intItr).Close
            End If
    Next

    Set objmyBrowsColl = Nothing
    Set objDesc = Nothing
  
End Function

Function  fnCloseChromeBrowsers()

    Dim objDesc1, objmyBrowsColl,intItr,strBrowserName1

    Set objDesc1 = Description.Create()
    objDesc1("micclass").Value = "Browser"
    objDesc1("application version").Value ="Chrome 22.0"
    objDesc1("title").Value ="ISL Dashboard"
    Set objmyBrowsColl = Desktop.ChildObjects(objDesc1)
    
    For intItr =0 to objmyBrowsColl.Count - 1
           strBrowserName1 = objmyBrowsColl(intItr).GetROProperty("title")
            
            If InStr(1,strBrowserName1,"ISL Dashboard") Then
                
            else
        objmyBrowsColl(intItr).Close
            End If
    Next
    Set objmyBrowsColl = Nothing
    Set objDesc1 = Nothing
  
End Function


can anyone please help me

Thanks
Tanya
Reply


Messages In This Thread
Unable to identify unque properties of chrome browser - by tanyamrz - 10-22-2012, 06:22 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  UFT24.2 and Chrome Browser is not resnponding mode kotaramamohana 0 212 11-12-2024, 05:33 PM
Last Post: kotaramamohana
  Unable to identify multilevel headers of JTable dharanikesav 0 1,512 01-16-2017, 07:09 PM
Last Post: dharanikesav
  Unable to get properties of JavaObject in contextual menu amit25007 1 1,881 12-18-2015, 12:27 PM
Last Post: vinod123
  Cannot find the "[ WebEdit ]" object's parent "[ Browser ]" (class Browser). Verify t Divya Roopa 1 8,613 03-11-2014, 12:13 PM
Last Post: devarapallliramana
Rolleyes QTP 11 not identify PDF Browser laxminaranaya 1 2,495 02-25-2014, 01:34 PM
Last Post: guin.anirban

Forum Jump:


Users browsing this thread: 1 Guest(s)