I'm trying to select the following value in a WebList:
Container Management - Container Inventory(City/Facility Level)
If I hard-code this value then it selects it OK but when I try to pass the same value from DataSheet then QTP throws and error "Invalid Procedure call or Argument". Any suggestions?
Try putting in an apostrophe in the data sheet.
'Container Management - Container Inventory(City/Facility Level)
Patience is like bread I say.... I ran out of that yesterday.
That did not help.
Any other suggestions?
what is your code to retrieve? I tried adding it to the datasheet and I was able to read it without any error.
The problem is not retrieving data ,the problem is when selecting an item from "Weblist" using data retrieved from DataTable.
For Example this code works if I hard-code the value:
Obj.WebList("html tag:=SELECT").Select "Container Management - Container Inventory(City/Facility Level)"
This code does not work where I'm retrieving the Select value from DataTable:
FeatureName = DataTable("FeatureName",dtlocalsheet)
Obj.WebList("html tag:=SELECT").Select FeatureName