How Do I open youtube in chrome and set focus on the search field?

I see two issues with your Macro:

  1. Before the Focus Action is executed you need to make sure the web page is open and loaded.
  1. I think you have the wrong token for the search field. Here is what works for me:
    • image
      //INPUT[@id="search"]
1 Like