This test uses the existence of a keyboard to determine if an element has been focused. This approach doesn't work for iPad.