I want to verify element ‘Job Title
Senior Quality Engineer’ contains ‘Senior Quality Engineer’
is there a one line solution for this without ‘if’ solution ?
I tried ‘Senior Quality Engineer’
and
WebUI.getText(findTestObject(‘Object Repository/Pages/Purchasing/MyLocalSite/employmentMenu/jobTitle’))contains(GlobalVariable.jobTitle)
with no luck
If the element, “Job Title Senior Quality Engineer” is displayed in a label, span, or a web table, then WebUI.getText() should work, but if the element is an input, or textarea, then you should use: