Upvote:2
I realize this question is from more than a year ago, so the answer comes late. But in case someone is in a similar situation: you can get a visa in USA, even if you are not US resident. You can apply on line and, if approved you send your passport by mail with a self addresses envelop. The whole process will take more than a week, probably two, so if you are for a short period then this will not work. Bottom line: if you can, apply in your own country. Source: we did it for my mother in law in 2015.