MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / Frame

Method Frame

dotnet/src/webdriver/TargetLocator.cs:48–54  ·  view source on GitHub ↗

Move to a different frame using its index The index of the A WebDriver instance that is currently in use

(int frameIndex)

Source from the content-addressed store, hash-verified

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

Calls 6

EscapeCssSelectorMethod · 0.80
CssSelectorMethod · 0.80
AddMethod · 0.45
ExecuteMethod · 0.45
FindElementsMethod · 0.45
ToDictionaryMethod · 0.45