Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
array to be captured and displayed
#1
I want to capture the price of all the products in the website that matches the description. But the code below is giving error as Type Mismatch. What is wrong in the code..please help.

Error:
Type mismatch: 'Browser(...).Page(...).ChildObjects'
Line (16): "obj_price = Browser("creationtime:=0").Page("title:=.*").ChildObjects(desc)".





Code:

Set desc= description.Create
desc("micClass").value= "WebElement"
desc("class").value= "lfloat product-price"
desc("htmltag").value= "SPAN"

Dim obj_price
obj_price = Browser("creationtime:=0").Page("title:=.*").ChildObjects(desc)
Print obj_price.count



Output expected:
obj_price = 25000 , 45000 , 12000, ...etc
obj_price.count = 35
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  "UFT has stopped working" is displayed during running the script kotaramamohana 0 2,156 08-24-2018, 01:07 PM
Last Post: kotaramamohana
  Multiple 2 IE browsers are being displayed VA1405 1 2,813 01-15-2014, 07:20 AM
Last Post: basanth27
  Type mismatch is displayed for .SET method (Blank value) dineshb 4 5,707 07-20-2010, 08:58 PM
Last Post: dineshb
  How to use Array of Array in QTP dineshb 1 17,579 12-12-2009, 02:00 AM
Last Post: rdemers25
  Array function for Static Array anbarasu 2 4,875 11-20-2009, 12:18 PM
Last Post: anbarasu

Forum Jump:


Users browsing this thread: 1 Guest(s)