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...
What about, when the user types in the information, just send the ENTER keystroke? Are you testing the button or are you testing the search functionality?
What happens if you use Object Spy to try and inspect the image?
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