Thread Rating:
  • 1 Vote(s) - 1 Average
  • 1
  • 2
  • 3
  • 4
  • 5
QTP not selecting appropriate webelement from the webtable..Need Solution
#10
Solved: 11 Years, 4 Months, 4 Weeks ago
when i use the above script then it is highlighting entire table..


I have modified the script as below and tried again but still not selecting appropriately
Code:
Set AdmissionRequests = Browser("BN").Page("Inpatient").Frame("Admission Requests")
r = AdmissionRequests.WebTable("Requested Admission Date").GetRowWithCellText("AR1100000113")
PRINT r
Set oWebElement=Description.Create()
oWebElement("micclass").value="WebElement"
oWebElement("innertext").value = "AR1100000113"
Set oElem = AdmissionRequests.WebTable("Requested Admission Date").ChildObjects(oWebElement)
obj = oElem.count
PRINT obj
res = abs(obj - r)
res1 = abs(obj - res) - 1
If AdmissionRequests.WebTable("Requested Admission Date").Exist(1) Then
    oElem(res1).Click
End if
Reply


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

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,567 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: 2 Guest(s)