InterviewSolution
Saved Bookmarks
| 1. |
When there is neither a frame ID nor a frame name, what technique should be considered in the script? |
|
Answer» When frame name and frame id are unavailable, we can use frame index instead. Suppose there are four frames on a page that don't have frame names or frame identifiers (frame ID), but we can still select them with the frame (zero-based) index attribute. For instance, the first frame would be indexed 0, the second frame would be at index 1, the third frame would be at index 2, and the fourth frame would be at index 3. driver.switchTo().frame(int arg0); |
|