I tried switching of windows in I Phone (even android) but failed to perform the switching.
Is switching possible of windows possible in I Phone or not.
Here is the switching code:
for (String winHandle : driver.getWindowHandles()) {
if (!(parentHandle == winHandle)) {
driver.switchTo().window(winHandle);
}
System.out.println("In for Loop ");
}
Please provide possible cause for this switching not happening in I Phone or Android but same code works fine in windows system with all browser combinations.