Move to a different frame using its index The index of the A WebDriver instance that is currently in use
(int frameIndex)
| 46 | /// <param name="frameIndex">The index of the </param> |
| 47 | /// <returns>A WebDriver instance that is currently in use</returns> |
| 48 | public IWebDriver Frame(int frameIndex) |
| 49 | { |
| 50 | Dictionary<string, object?> parameters = new Dictionary<string, object?>(); |
| 51 | parameters.Add("id", frameIndex); |
| 52 | this.driver.Execute(DriverCommand.SwitchToFrame, parameters); |
| 53 | return this.driver; |
| 54 | } |
| 55 | |
| 56 | /// <summary> |
| 57 | /// Move to different frame using its name |