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
  Unable to identify multilevel headers of JTable dharanikesav 0 1,346 01-16-2017, 07:09 PM
Last Post: dharanikesav
  Unable to get properties of JavaObject in contextual menu amit25007 1 1,680 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,308 03-11-2014, 12:13 PM
Last Post: devarapallliramana
Rolleyes QTP 11 not identify PDF Browser laxminaranaya 1 2,250 02-25-2014, 01:34 PM
Last Post: guin.anirban
  Unable to identify immediate parent in hierarchy martinshort 0 2,567 11-18-2013, 08:59 PM
Last Post: martinshort

Forum Jump:


Users browsing this thread: 1 Guest(s)