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
#2
Not Solved
Any solution for this?? I am still facing the problem.
Reply
#3
Not Solved
Ankesh,

Did you install web add-ins for IE 8?
Reply
#4
Not Solved
Thanks for ur reply.

I am not sure whether i need any additional web add-in for IE8. I am using tow add-ins for QTP - SAP, Web.

Plz guide me.
Reply
#5
Not Solved
I am facing a similar issue with QTP 11 and IE8...i scripted with IE10 and UFT but now the description objects i created are not working properly in IE8...Its a bit urgent and any help would be appreciated
Reply


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

Forum Jump:


Users browsing this thread: 2 Guest(s)