Forum Discussion

msap's avatar
msap
Frequent Contributor
6 years ago

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 recs.

while recording script shows: recording coordinates. any suggestions how to avoid the coordinates.

 

7 Replies

  • tristaanogre's avatar
    tristaanogre
    Esteemed Contributor

    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?  

    • msap's avatar
      msap
      Frequent Contributor

      search functionality.

      object spy does not recognize the image instead selects the menu bar.

      • tristaanogre's avatar
        tristaanogre
        Esteemed Contributor

        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.