I wrote a test using Katalon Studio 5.8.0.
My application under test contains a iFrame.
Fortunately, both the iFrame and its children are identified using unique attributes.
So, the following code was correctly running on Firefox 63 and Chrome 69
WebDriver driver = DriverFactory.getWebDriver(); WebElement elementFrame = null; elementFrame = driver.findElement(By.xpath("//iframe[@id = 'monerisFrame']")); driver.switchTo().frame(elementFrame); List<WebElement> ElementList=driver.findElements(By.xpath("//input[@type = 'tel']")); System.out.println("iFrame elements: " + ElementList.size());
Console output: iFrame elements: 2
Unfortunately, since my Chrome got updated from 69 to 70, the same exact code returns zero instead of 2. Same AUT, same code...
Console output: iFrame elements: 0
I presume Chrome 70 is doing something different with iFrames.
Any clues on how to work around this issue without downgrading to Chrome 69 ?