creta
March 1, 2019, 8:33am
1
Hi
I am searching for a specific term say “ABC”. On click of search button it showed me list of records which contains “ABC” in it. Here i would like to verify, page is not showing other records which doesn’t contain “ABC” along with. how can i do that?
My application looks something like this
Thank u
Hi - you will want to use - WebUI.verifyElementAttributeValue(findTestObject(null), ‘’, ‘’, 0) - fill it in respectively to meet your requirements so “ABC”
I have had the same sort of issue that is ongoing - might be worth a read
Im trying to verify that the string has been inputted correctly and has saved as expected but when using the VerifyElementText tool it gives me that they are not matched however they are. Am i doing something wrong?
[Screenshot%20(282)_LI]
Error log Test Cases/touchpoint examples/Add a new job - HR - 9.1 FAILED.
Reason:
com.kms.katalon.core.exception.StepFailedException: Verify element text of test object ‘Object Repository/Add a new job/Page_CIPHR Self Service 9.1.0/input_Job Number _Job.Jo…
creta
March 5, 2019, 3:06pm
3
Hey
Just gone throu the issue and tried with WebUI.verifyElementAttributeValue(findTestObject(null), ‘’, ‘’, 0) but it’s throwing an error
Regards!!
Can you please share with me your script steps
creta
March 5, 2019, 3:14pm
5
yeah here it is
String None = WebUI.getText(findTestObject('New changes/Cycle count/WC'))
GlobalVariable.Page2 = None
WebUiBuiltInKeywords.click(findTestObject('Customer module/Search Customer/i_nexgen-search'))
WebUiBuiltInKeywords.waitForPageLoad(0)
WebUI.verifyElementAttributeValue(findTestObject('New changes/Cycle count/Number list'),
'value', GlobalVariable.Page2, 0, FailureHandling.STOP_ON_FAILURE)
Regards!!
is that error throwing when only records are shown with ABC or when they are shown like the screenshot you shared above ?
if it showing with these records present then i would expect it to give you this error because the attribute value is not meeting ABC
creta
March 5, 2019, 4:05pm
7
yeah its shown when only records displayed with term ABC.
Are you using the correct attribute in the following
creta:
WebUI.verifyElementAttributeValue(findTestObject(‘New changes/Cycle count/Number list’), ‘value’, GlobalVariable.Page2, 0, FailureHandling.STOP_ON_FAILURE)
What i mean by that is ‘value’ might not be the attribute that contains ABC, it may be a different attribute