I am building up a plugin that needs to perform a search on linkedin main search bar, using jquery & js.
When using it normally, you would have to click on it, which expands a search box, and press enter to search for the value your entered:
However, for some reason, I am unable to trigger the click on the search input. I tried with click, mousein, mouseenter, focusin events, using jquery, but it does not trigger any action. I also try to simulate a click, but no luck.
I went further and tried the same actions on the parent divs with class "global-nav-typeahead", "search-global-typeahead" and "global-nav__search" but no luck.
you can see the structure here:
Therefore my question is, is there any other js event I am missing that could cause the search box to open? I'm not sure which event is this search box listening to in order to appear.
What other events could be triggered? Is it possible linkedin has some kind of protection about programmatic events? and if yes, how to go around it?