CodeceptJS icon indicating copy to clipboard operation
CodeceptJS copied to clipboard

Fill Field Not working as expected in playwright (React FrameWork)

Open purushothaman-source opened this issue 3 years ago • 3 comments

What are you trying to achieve?

Trying to insert text in input using fillField..

What do you get instead?

Provide console output if related. Use --verbose mode for more details.

Screenshot from 2023-01-04 12-29-37

Screenshot from 2023-01-04 12-33-23

Details

  • CodeceptJS version: ^3.0.2
  • NodeJS Version: 12
  • Operating System: linux
  • playwright version (if related) ^1.9.2
  • Configuration file:

Note : There is no logic in Ui to filter the char I tried adding logs directyly in onChange event handler

onChange = (e) => log(e.target.value)

it seems the fillField is not pasting the text at once

Im getting logs like these

{"value": "stagi"}

{"value": "stagig rele"}

{"value": "stagi"}

{"value": "stagig rel"}

{"value": "stagig releas"}

{"value": "st"}

{"value": "stagig relea"}

{"value": "stagig re"}

{"value": "stagig release"}

purushothaman-source avatar Jan 04 '23 07:01 purushothaman-source

someone reported this already in comment https://github.com/codeceptjs/CodeceptJS/issues/499#issuecomment-453842368

purushothaman-source avatar Jan 04 '23 07:01 purushothaman-source

Note : After upgrading react package to 18 ..It is happening very frequently

purushothaman-source avatar Jan 23 '23 08:01 purushothaman-source

Closed for now! Feel free to reopen if you still encounter the issue with latest version and would be nice to provide a sample code to reproduce the issue.

kobenguyent avatar Nov 24 '23 09:11 kobenguyent