- 
          
 - 
                Notifications
    
You must be signed in to change notification settings  - Fork 8.6k
 
Closed as not planned
Labels
A-needs decisionTLC needs to discuss and agreeTLC needs to discuss and agreeI-enhancementSomething could be betterSomething could be better
Description
Feature and motivation
There are times when we want to press the "copy" keyboard shortcut. However, that option is Ctrl+c on Windows/Linux, and Command+c on a Mac.
This feature is needed even in our own tests:
selenium/dotnet/test/common/TypingTest.cs
Lines 745 to 748 in ff7fa52
| private string PrimaryModifier() | |
| { | |
| return (RuntimeInformation.IsOSPlatform(OSPlatform.OSX)) ? Keys.Command : Keys.Control; | |
| } | 
Playwright has a helper for this on its keyboard: ControlOrMeta. We should have the same.
Usage example
element.SendKeys(Keys.ControlOrMeta + "x");valfirst
Metadata
Metadata
Assignees
Labels
A-needs decisionTLC needs to discuss and agreeTLC needs to discuss and agreeI-enhancementSomething could be betterSomething could be better