You interview, you get the offer, and the lawyers at the company apply for the visa for you.
There are some exception cases where an open-ended visa is possible, but this is uncommon - but if you're famous in the industry you may qualify.