Forum Discussion

leeasdf9's avatar
leeasdf9
Frequent Contributor
9 years ago
Solved

How to capture an obj with random process index

sys: Win8

tc:11

process: jp2launcher

 

Hi,

There is a case we need to verify a popup dialog from a main application, the main tested application is processed as Sys.Process("jp2launcher",1),  and 2nd tested application is processed as Sys.Process("jp2launcher",2).

The issue is that the 3rd expected popup dialog is processed sometimes as

Sys.Process("jp2launcher",2).SwingObject("mypopupobj","labelname",-1,1)

sometimes as

Sys.Process("jp2launcher",3).SwingObject("mypopupobj","labelname",-1,1)

 

is there a way to search this popup obj in all browsed jp2laucher processes?

Thanks for your help in advances,

Lee

2 Replies

    • leeasdf9's avatar
      leeasdf9
      Frequent Contributor

      Thanks for your reply, you got the point, in my case more jp2launcher processes are running, the expected obj is only existing in one of jp2launcher processes, if you namemapping, you need to define process index, if process index not defined or with *, then tc search engine only searchs mapped obj in 1st browsed jp2launcher process.

      i found a workaround, i used "if object exists" statement to verify obj.

      Thanks anyways for your help.