Frames

To find  frames first we need to dom structure and  search ctrl+f and tagname iframe and find size of the frames.


 To test frames we use --------http://demo.guru99.com/test/guru99home/
List<Webelement>li=driver.findelements(By.tagname("iframe"));
systm.out.println(li.size());


 frames can be handled by three ways namely
     1.by id or name
     2.by index
     3.by element
these type of frames we will find in interview first one is different and second one is different because in frame one we finded all the elements but in second inside inside inside frames are there


Comments

Popular posts from this blog

Selenium Locators usage

Java Theory interview questions

java programmes frequently asked in interview