07-24-2013, 11:28 PM
Req: I need to search customer with first and last name. In return result will be (Last Name Coma Space FirstName). I wrote the follwoing code
As always I belive this forum is the best place to get the solution
Code:
If str_TestCaseId="TC007_PolicySearch_By_FirstAndLastName" Then
GetReturnedName=Browser(".").Page(".").WebElement(".").GetROProperty("innerhtml")
ReturnedNameFormat= str_LastName&","&" "&str_FirstName
If GetReturnedName=ReturnedNameFormat Then
Reporter.ReportEvent micPass, "Search returned proper format of insured name by searching First and last name",""
Reporter.ReportEvent micFail,"Search did not return proper format of insured name by searching First and last name", ""
End If
End If
As always I belive this forum is the best place to get the solution