Multiple changes to improve ios-driver when driving mobile Safari on a real device.