Beispiel #1
0
 /// <summary>
 /// Fetches an element with <paramref name="selector"/>, scrolls it into view if needed, and then uses <see cref="Page.Mouse"/> to click in the center of the element.
 /// </summary>
 /// <param name="selector">A selector to search for element to click. If there are multiple elements satisfying the selector, the first will be clicked.</param>
 /// <param name="options">click options</param>
 /// <exception cref="SelectorException">If there's no element matching <paramref name="selector"/></exception>
 /// <returns>Task which resolves when the element matching <paramref name="selector"/> is successfully clicked</returns>
 public Task ClickAsync(string selector, ClickOptions options = null)
 => SecondaryWorld.ClickAsync(selector, options);