I need to get the result from the table \"td\". But before I can do that I need to navigate a frame that contains it. The frame is one of the frameset elements that belongs
Find the index of main frame starting from zero then use
driver.switchTo.frame(mainFrameindex);
Then find the index of sub frame in the main frame
driver.switchTo.frame(subFrameIndex);
You cannot directly switch to a child frame without first switching to the parent frame. This is how it works.