Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[FEATURE]: New Task: shift+click, or more general keypress+click #195

Open
2 tasks done
imnasnainaec opened this issue Oct 27, 2021 · 4 comments
Open
2 tasks done
Labels
enhancement New feature or request

Comments

@imnasnainaec
Copy link

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.
@imnasnainaec imnasnainaec added the enhancement New feature or request label Oct 27, 2021
@AutomationPanda AutomationPanda added the hacktoberfest Recommended for Hacktoberfest label Oct 27, 2021
@AutomationPanda
Copy link
Contributor

@imnasnainaec , this sounds awesome! I assigned it to you. Here's our contributing guide:
https://q2ebanking.github.io/boa-constrictor/contributing/contributing-code/

@AutomationPanda AutomationPanda removed the hacktoberfest Recommended for Hacktoberfest label Nov 2, 2021
@CoffeeAtBedtime
Copy link
Contributor

Maybe this more abstractly could be an action like Modifier Click and similarly Modifier Chord

@AutomationPanda
Copy link
Contributor

Hi @imnasnainaec! Is this something you'd still like to implement?

@imnasnainaec
Copy link
Author

@AutomationPanda It is, though my work schedule has been changing and I don't expect to be able to work on it until next spring or summer.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants