VB Script to close the browser

We have 5 IE Browsers to be opened and i want close 3rd IE Browser by using VB Script ?

Showing Answers 1 - 1 of 1 Answers

Srinivas P

  • Feb 2nd, 2012
 

If we have opened 5 yahoo IE browser then Using descriptive programming, we can close the 3rd browser with below code:
browser("title:=Yahoo.*", "creationtime:=2").close

Here we are using ordinal idetifier i.e., creation time. Index of the creation time starts with 0 which is the first browser opened. The 2nd browser opened will have index of 1 and so on.

Hope this clarifies.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions