Search Script is not working as Expected

Hi Team,

I am trying to test the flow of launching the website and Click on Search Button and entering search text and click enter.

I have tried the below scripts but it giving only main home page but not getting the search results page.

setvalue id=masthead-search-term shirts
submitform id=masthead-search

execAndWait document.querySelector(’.shirts’).click();

execAndWait document.querySelector(‘shirts’).click();

Thanks and Regards,
M Ram Mohan
+91 7708776622