since I updated the chromedriver version, I have encountered a problem. If I use chromedriver version 113 or 114, I am unable to retrieve any of the elements within a specific iframe. However, I can access elements within other iframes without any issues. On the other hand, I don't have any problems with chromedriver version 112. What could be happening?
I have tried multiple ways to retrieve the elements within the problematic iframe using chromedriver version 113, but I have been unsuccessful. If I target the iframe like this:
WebElement element = driver.findElement(By.id("window_id_1_content"));
driver.switchTo().frame(element);
List<WebElement> elements = driver.findElements(By.xpath("//*"));
The response I receive is that there are no elements in the list. However, in version 112, even though I don't need to switch to the iframe to successfully retrieve its elements, I do get results when I execute the same code. This is the iframe that is causing problems (I have modified the src).
<iframe name="window_id_1_content" id="window_id_1_content" src="/blalalalala/blalalalal/blalalalal.do?&SESSION_CLIENT_STATE=window_id_1" style="height: 389px; width: 1246px; visibility: visible;" cd_frame_id_="666066666666d66c66ab01ecf26e4be7" class=""> </iframe>
@Greg Burghardt Thanks.