A rotisserie works well for foods that are of a relatively uniform size and shape, so that all of the food is more or less exposed to the heating element(s) for the same amount of time. A whole chicken fits into this category. A single ear of corn, mounted horizontally, would also fit into this category (but because of its small diameter, the kernels may be so far from the heating element, it may take an age for them to cook.)

A basket such as you mention, might hold four ears of corn. But if you place them in the basket horizontally, the two ears on the outside will be most exposed to the heat, and the ears in the middle will be little cooked. If you place them in the basket vertically, the ends of all four ears will be closest to the heat and likely to overcook, while the middle of each ear will be undercooked. Another issue is that like Mercury, where one side of the planet faces the Sun all the time, the same section of your corn is going to be exposed to the heating element all the time, so that side will get well done, while the side that is snuggled up against another ear of corn is going to be raw.

Of course there are different heat sources associated with rotisseries - electric, as you mention, but also infrared, or over a grill or fireplace - and the application of heat can make a big difference. If you roast a basket of corn on a rotisserie over a camp fire or fireplace, enough heat is likely to reach every part of the corn, that it may be done throughout before any section burns (but like grilling corn without the husk, it could dry out before getting done). A closed grill or countertop rotisserie oven may likewise generate and keep enough heat inside (assuming you don't open the door or lid to check every two minutes) to thoroughly cook the corn, but you may have some parts that seem grilled and other parts that seem steamed.

If you're really looking for the flavor of grilled corn, we hope you have access to some sort of grill. If all you have is a rotisserie basket, give it a shot, but we don’t think you'll be thrilled with the results.