iMac (El-Capitan) - Trying to make Wi-Fi as a priority over Ethernet
On your Mac, choose Apple menu  > System Preferences, then click Network.
Click the Action pop-up menu , then choose Set Service Order.
Drag services into the order you want.
Click OK, then click Apply to make the new settings active.