Identification with class property for a window
Posted: Wed Sep 03, 2014 11:52 am
Hi
I am testing a web application that is used for calls between clients.
All call is a separate window and Windows Id changes everytime.
First I can detect call status with the path
.//div[#'call_status']
When I make a second call, first window goes back and another window comes up
Now I need to get call status of this new window
Now status of first call is `On Hold` and status of second call is `On Call`
However I can not detect status of new window, If I use same approach I detect status of old window that goes back actually.
I tried to recognize new window with its class property but I couldn't..
if I give class name such as this path
.//div[@class='call_window outgoing']//div[#'call_status']
can not find anything..
I see Ranorex can not Identify with class property ? Is Identification with class property possible anyway?
I am sending a screenshot. As you can see from my spy window capture, only class and windows id is unique, and window id is dynamic, everything other is same.
I hope experienced testers can help me..
Thanks,
Rasim.
I am testing a web application that is used for calls between clients.
All call is a separate window and Windows Id changes everytime.
First I can detect call status with the path
.//div[#'call_status']
When I make a second call, first window goes back and another window comes up
Now I need to get call status of this new window
Now status of first call is `On Hold` and status of second call is `On Call`
However I can not detect status of new window, If I use same approach I detect status of old window that goes back actually.
I tried to recognize new window with its class property but I couldn't..
if I give class name such as this path
.//div[@class='call_window outgoing']//div[#'call_status']
can not find anything..
I see Ranorex can not Identify with class property ? Is Identification with class property possible anyway?
I am sending a screenshot. As you can see from my spy window capture, only class and windows id is unique, and window id is dynamic, everything other is same.
I hope experienced testers can help me..
Thanks,
Rasim.