msap
6 years agoFrequent Contributor
image
whats the property or method used to get "click on image to search the records"? any suggestions, we have a binocular search button, user input test and clicks the search button to search from rec...
search functionality.
object spy does not recognize the image instead selects the menu bar.
Then my recommendation is that, instead of trying to automate clicking on the button, do something like this (represented in Script code but you can do the same with Keyword tests).
Aliases.MyApp.MyForm.textboxSearchField.Keys('search string[Enter]');
This will simulate typing into the field and pressing the "Enter" key to intiate the search.
when i input the scrpt code it shows error.Unable to find the object TextBoxMaskBoxSearchField.
textboxSearchField
"textboxSearchField" is my sample code. You should not use it as literally what you want to do. I'm assuming you already have code that is doing either "SetText" or "Keys" into the field for searching. Change taht code to use "Keys" and add the "[Enter]" at the end of the string.
it neither shoqws the textbox or set text or keys ,it just shows below coordinates:
dockedBarControl.ClickItemXY("Search Grid", 51, 9);
gridSearchButtonEdit = dockedBarControl.GridSearchButtonEdit
gridSearchButtonEdit.DblClick(88, 11);