Thread Rating:
  • 1 Vote(s) - 1 Average
  • 1
  • 2
  • 3
  • 4
  • 5
QTP not selecting appropriate webelement from the webtable..Need Solution
#5
Solved: 11 Years, 4 Months, 4 Weeks ago
Hi Saket,

Actually webtable has 9 rows and 1 column as is is displayed in object spy(attached here) and if i pass number directly in childitem(eg: column number as 4) then it is giving run time error when i run the below script

Code:
Set AdmissionRequests = Browser("BN").Page("Inpatient").Frame("Admission Requests")
r = AdmissionRequests.WebTable("Requested Admission Date").GetRowWithCellText("AR1100000113")
PRINT r
Set oElem = AdmissionRequests.WebTable("Requested Admission Date").ChildItem(r, 4, "WebElement", 0)
oElem.Click

Error:
----------------------------------------------------------------
The statement contains one or more invalid function arguments.
Line (173): "oElem.Click".
----------------------------------------------------------------

Webtable is not having equally distributed rows and columns...this is the problem i guess..

Please help me out with any other solution

Please refer the attachments...

Thanks,
satish
Reply


Messages In This Thread
RE: QTP not selecting appropriate webelement from the webtable..Need Solution - by satishkumarm - 04-26-2011, 10:39 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
Exclamation WebElement("WebElement").Click is not working sia sharma 7 24,041 09-28-2016, 08:58 PM
Last Post: supputuri
  Scrambled characters in uft Solution Explorer Dwarak Calayampundi 0 1,566 05-25-2016, 05:02 AM
Last Post: Dwarak Calayampundi
  QTP not recording script for webtable alpha1 4 2,942 07-20-2015, 03:47 PM
Last Post: alpha1
  Selecting values from drop down using QTP. prempujaripati 2 46,858 06-26-2014, 06:06 PM
Last Post: rasmirani
  Selecting file saved in a location excellentpawan 1 4,080 02-25-2014, 02:05 PM
Last Post: guin.anirban

Forum Jump:


Users browsing this thread: 1 Guest(s)