Moving between frames...
Consider an application where the contents are in different frames and need to fetch data from a frame FRAME-1 FRAME-2 FRAME-3 In the above example consider that after selecting an item in frame 2 the contents are displayed in frame 3 now need to read the data in frame 3 public void default_frame(){ try{ driver.switchTo().defaultContent(); frames(Frame1,fmset); }catch(Exception e){ e.printStackTrace(); } } In the above code first we are moving to default frame by switching to default content public void frames(final String x, final String y){ try{ driver.switchTo().frame(x); System.out.println(":::::::::: Frame 1 is switched " + x); driver.findElement(By.tagName(y)); System.out.println(":::::::::: Frameset value " + driver.findElement(By.tagName(y)) + "::::"); }catch(Exception e){ e.printStackTrace(); } } In the above code after moving to frames, now need to go t...