driver.switchTo().frame() method takes one of the three possible arguments:
- A number - Select a frame by its (zero-based) index.
- A name or ID - Select a frame by its name or ID.
- A previously found WebElement - Select a frame using its previously located WebElement.