Interview Questions

Selenium WebDriver - Which attribute you should consider throughout the script in frame for “if no frame Id as well as no frame name”?

Selenium WebDriver Interview question and Answers


(Continued from previous question...)

Selenium WebDriver - Which attribute you should consider throughout the script in frame for “if no frame Id as well as no frame name”?

You can use…..driver.findElements(By.xpath(“//iframe”))….

This will return list of frames.

You will ned to switch to each and every frame and search for locator which we want.

Then break the loop

(Continued on next question...)

Other Interview Questions