-
Notifications
You must be signed in to change notification settings - Fork 44
Open
Labels
enhancementNew feature or requestNew feature or request
Description
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:
/// <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.
We are needing shift+click for testing one function of https://github.com/sillsdev/TheCombine.
Commitments
- I agree to follow Boa Constrictor's Code of Conduct.
- I want to work on this issue myself.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request