Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Add paste option to TypeOptions #1230

Closed
ericyd opened this issue Feb 11, 2017 · 3 comments
Closed

Add paste option to TypeOptions #1230

ericyd opened this issue Feb 11, 2017 · 3 comments
Labels
API MODIFICATION LEVEL: non-breaking changes AREA: client AREA: server STATE: Auto-locked An issue has been automatically locked by the Lock bot. SYSTEM: API TYPE: enhancement The accepted proposal for future implementation.
Milestone

Comments

@ericyd
Copy link
Contributor

ericyd commented Feb 11, 2017

Are you requesting a feature or reporting a bug?

Requesting a feature

What is the current behavior?

The typeText command enters text character by character with no option to insert a block of text in a single keystroke.

What is the expected behavior?

A TypeOption should be added to insert a block of text in one keystroke.

Suggested syntax

I propose an option named paste, as this functionality will emulate the copy and paste functionality that should already be familiar to users.

await t.typeText(selector, text, { paste: true };

Specify your

  • operating system: Linux Mint 17.1
  • testcafe version: 0.13.0
  • node.js version: 7.4
@inikulin
Copy link
Contributor

Hi, good idea. I saw you issued PR already: feel free to contribute.

@drakor007
Copy link

drakor007 commented May 23, 2018

Thanks a lot,
it solved my problem with inserting a message into the html editor field. Because HTML editor changed normal spaces to  
Insert whole message like a ctrl+v leaves spaces as they are.

Similar problem is described here https://testcafe-discuss.devexpress.com/t/verify-text-with-nbsp/226

@lock
Copy link

lock bot commented Mar 28, 2019

This thread has been automatically locked since it is closed and there has not been any recent activity. Please open a new issue for related bugs or feature requests. We recommend you ask TestCafe API, usage and configuration inquiries on StackOverflow.

@lock lock bot added the STATE: Auto-locked An issue has been automatically locked by the Lock bot. label Mar 28, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Mar 28, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
API MODIFICATION LEVEL: non-breaking changes AREA: client AREA: server STATE: Auto-locked An issue has been automatically locked by the Lock bot. SYSTEM: API TYPE: enhancement The accepted proposal for future implementation.
Projects
None yet
Development

No branches or pull requests

3 participants