I need to get values from the web table Page 1 and Need to check the value
in the Page 2 web table.
Eg:
In page 1 there is 1. First Name 2. Last name and 3. Address. I need to
extract the value from here and need to check in the Page 2 where I have
same First Name, Last Name and Address.
I’m able to Get the value from the web table, but I don’t know how to
proceed after that.
Code which i tried to store the value from the webpage one:
'I'm here declaring the variable which needs to be validated
StrDeclareGetVal =
"StrLastName;StrFirstName;StrAddress1;StrAddress2;StrCity, State,
Zip;StrAccount ;StrDOB"
StrDeclareSplt = Split (StrDeclareGetVal,";")
'using this i'm locating the object in the webtable
StrWebElem1 = "Last Name;First Name;City, State, Zip;Account Payment;DOB"
StrWebElem2 = Split(StrWebElem1,";")
For IntNum = 0 To ubound (StrDeclareSplt) Step 1
StrWebElem3 = StrWebElem2 (IntNum)
StrDeclareFnl = StrDeclareSplt(IntNum)
StrRw1 =
Browser("XXX").Page("YYY").WebTable("ZZZ").GetRowWithCellText(StrWebElem3)
StrCurrentValue =
Browser("XXX").Page("YYY").WebTable("ZZZ").GetCellData(StrRw1,2)
StrDeclareFnl = "StrCurrentValue"
msgbox StrDeclareFnl
Next
The code works perfectly but i have done the logical mistake which needs to
clarified.The problem in the above code is i'm trying to store the First
Name in StrLastName and value which needs to stored is from the
StrCurrentValue. Which i'm getting from the web table. But i'm not able to
do it.
--
--
You received this message because you are subscribed to the Google
"QTP - HP Quick Test Professional - Automated Software Testing"
group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en
---
You received this message because you are subscribed to the Google Groups "QTP
- HP Quick Test Professional - Automated Software Testing" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.