Multiple Browser Tabs Testing

I have opened browser with 5 tabs, and the tabs should be change dynamically, Ii need to close the 3rd tab. How will you write a code for it?

Showing Answers 1 - 1 of 1 Answers

Swapneel Jadhav

  • Aug 29th, 2016

Option Explicit
Dim ObjDesc, ObjColl, BrName, i
Set ObjDesc=Description.Create
ObjDesc.Add "micclass","Browser"
Set ObjColl=Desktop.ChildObjects(objDesc)
For i=0 to ObjColl.count-1 Step 1
If BrName="Google" Then
Dont do anything

  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