Answers

Question and Answer:

  Home  SilkTest

⟩ Prob regarding close the Child Window

Answer1:

1. Identify the process handle and

2. kill it First child and then the MainWindow.

Answer2:

Integer HWnd=Browser.GetHandle() ///before child popup opens

....then your code

While Browser2.Exists()

{

If Browser.GetHandle()!=HWnd

Browser.Close()

Else

Browser2.SetActive()

}

You can also use window caption in the former code.

Answer3:

I think the tag to identify the parent and child are not unique, that is why the parent is closed...try to make the window id unique and then close the page...

First activate the child using and then close....It should work....

 243 views

More Questions for you: