RE: How to access elements in a frame which is inside a frame ?
Overall, you need to use enhancing for loop two times. First use the For each and enter into 2nd frame now again use enhancing for loop to iterate all the frames within the 2nd frame and then use any of 3 ways (select by Index, select by value or select by
web element) to identify the exact frame which you want to access and then use driver.switchto().frame(select by *) move into the inner frame. Now you entered into the frame which you want to access and now get the elements to perform the action within that frame.
If you want to come out of the frame use parentFrame() or defaultContent();
Hope this helps!