When testing manually, I enter the name in the search and I get all the records (partial search is taken)
Now when I use Katalon, I get zero results as Katalon is looking for exact search results.
Is there any option, where I can search for records with a partial name?
alternatively, I need help to concatenate Name + Regular expression (.\w\d\s) any word or digit and feed into search to get right selection to click the element.
@newbie Sorry, but do you have a search textbox in a browser that you are trying to test, or are you trying to search within KS, like for a Test Case?
If you are trying to test a search textbox, you should get the same results using KS as you did testing manually, assuming you are putting in the same text. Using Katalon does not make it look for exact search results. It’s still your web page doing the search. You need to talk to your developers if they allow partial searches in your search textbox. Especially if your web pages are going through development (maybe you just found a bug you can report back to them).
Thank you @grylion54
Apologies for not being clear.
The Testing Web Application which has a Search box is on the application.
Manually, I can type in the name and i get the results but when I send
Set Text (WebUI.setText(…) and WebUI.sendkeys(…) via the Katalon automation script, the search comes up only with exact match, this cannot be a bug as manual test behaves as it should. I am thinking is there a global option or some argument that defines this behavior. Please throw some light on this.
Hey @grylion54 I am also trying to record the page with search textbox with partial search text. when I run the test case it gives me below error when the test case reaches that field. Can you please help?
=============== ROOT CAUSE =====================
Caused by: org.openqa.selenium.StaleElementReferenceException: stale element reference: element is not attached to the page document
At object: ‘Object Repository/FA Loan/Test new/Page_Forbes Advisor UK/label_Full time’
Test Cases/landingPage FAILED.
com.kms.katalon.core.exception.StepFailedException: Unable to click on object ‘Object Repository/FA Loan/Test new/Page_Forbes Advisor UK/label_Full time’
You have a org.openqa.selenium.StaleElementReferenceException: stale Element Reference. There are several questions & answers about it that can give you some feedback on your concern. Here is a sample:
Might even be as simple as adding before your “stale” element using: