Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
QTP 11.0 and IE8 issue - ChildObject
#1
Not Solved
Hi,

I have one script which was working fine with IE7. The same script does not work for IE8.

The scenario is that there are many edit box on the page, i need to take a count and then enter some value into the box.

Below is my code ---

Code:
'Description for Browser and Page
Set ObjBrw=Description.Create
ObjBrw("title").value=".*"

'Description for Frame
Set ObjFrame=Description.Create
ObjFrame("name").value="positions"

'Description for child objects
Set ObjChildObjects=Description.Create
ObjChildObjects("html tag").value="INPUT"
ObjChildObjects("type").value="text"
ObjChildObjects("name").value="product\[.*\]"  'this is because the name of the edit boxes are like product[1], product[2]

'Get the child objects
Set ObjEdit=Browser(ObjBrw).Page(ObjBrw).Frame(ObjFrame).ChildObjects(ObjChildObjects)

intTotalObj=ObjEdit.count

msgbox intTotalObj

For i=0 to intTotalObj-1

ObjEdit(i).Set "Testing is good"&i+1  'Enter some values

Next

'Release the objects
Set ObjEdit=Nothing
Set ObjChildObjects=Nothing
Set ObjFrame=Nothing
Set ObjBrw=Nothing

---------------------------------------------
The code
intTotalObj=ObjEdit.count
use to give a proper count with IE7, but now it always displays the count as 1. If i restart IE8 and then run the program i get the proper count but once i do some operation on the page and run the program again, the count is always 1.

I am using QTP 11.0.

Please help.

Regards,
Ankesh
Reply


Messages In This Thread
QTP 11.0 and IE8 issue - ChildObject - by Ankesh - 10-25-2011, 05:25 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  QTP 10 not identifying objects in IE8 on 64 bit OS Ram2009 6 4,444 03-24-2015, 05:46 PM
Last Post: vinod123
  Webobjects are not identified by Spy in QTP 10 in IE8 Aakash142 1 2,253 02-18-2014, 01:19 AM
Last Post: supputuri
  Patch for IE8 to be used with QTP11.0 Ankesh 0 3,642 11-03-2011, 05:34 PM
Last Post: Ankesh
  QTP 11 not recognizing IE8 in win 7 irahulsingh 2 6,678 10-20-2011, 09:44 PM
Last Post: dmth74
  Does Qtp11.0 Supports windows7 and ie8? ranichidurala 0 4,959 03-03-2011, 11:12 PM
Last Post: ranichidurala

Forum Jump:


Users browsing this thread: 1 Guest(s)