How to the get the class name of Google Chrome

Ranorex Spy, Recorder, and Studio.
praneet
Posts: 24
Joined: Thu Nov 08, 2018 2:22 am

How to the get the class name of Google Chrome

Post by praneet » Tue Jul 16, 2019 3:44 pm

Hi,

I need to test the ready state of google chrome browser.I want to know the classname of the browser.
for eg for firefox :/form[@class='MozillaWindowClass'].So what is the similar xpath for chrome?

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 5180
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: How to the get the class name of Google Chrome

Post by odklizec » Tue Jul 16, 2019 6:06 pm

Hi,

Have you tried to track Chrome window with Ranorex Spy? It should display the information you need.
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration

manish
Posts: 46
Joined: Fri Aug 10, 2018 12:46 pm

Re: How to the get the class name of Google Chrome

Post by manish » Wed Jul 17, 2019 3:20 pm

HI praneet,


Why do you want to get the classname for chrome?

If you want to know whether an instane of chrome broswer has launched and has loaded the required url, you can use
/dom[@domain='domain_name' and @browsername='chrome' and @state='complete']

BR
Manish