Is it possible to switch to an element in a frame without using driver.switchTo().frame(“frameName”) in Selenium Webdriver Java?
问题 I have a multiple nested frames and I need to access the elements under these. As these frames are dynamic I am not able to access these elements. Is it possible for me to access the elements without using driver.switchTo().frame() ? Like using the xpath directly or jquery, javascript or anything? Any suggestions are welcome 回答1: In simple words, No , it wouldn't be possible to access the elements without switching into the intended <iframe> i.e. without using driver.switchTo().frame() To