You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like a new WebDriver Task for holding a key (or keys) and clicking. With Key in the constructor, the method could be something like as follows:
/// <summary>
/// Clicks the web element while holding the specified Key.
/// Use browser actions instead of direct click (due to IE).
/// </summary>
/// <param name="actor">The screenplay actor.</param>
/// <param name="driver">The WebDriver.</param>
public override void PerformAs(IActor actor, IWebDriver driver)
{
actor.WaitsUntil(Existence.Of(Locator), IsEqualTo.True());
new Actions(driver).MoveToElement(driver.FindElement(Locator.Query)).KeyDown(Key).Click().KeyUp(Key).Perform();
}
Alternatives
No response
Anything else?
I'd be happy to setup the pr--please let me know if I should proceed--or let somebody else do it.
Description
I would like a new WebDriver Task for holding a key (or keys) and clicking. With
Key
in the constructor, the method could be something like as follows:Alternatives
No response
Anything else?
I'd be happy to setup the pr--please let me know if I should proceed--or let somebody else do it.
We are needing shift+click for testing one function of https://github.com/sillsdev/TheCombine.
Commitments
The text was updated successfully, but these errors were encountered: