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

secret function doesn't work with I.appendField() and I.type() #3612

Closed
anils92 opened this issue Mar 7, 2023 · 2 comments · Fixed by #3615
Closed

secret function doesn't work with I.appendField() and I.type() #3612

anils92 opened this issue Mar 7, 2023 · 2 comments · Fixed by #3615

Comments

@anils92
Copy link
Contributor

anils92 commented Mar 7, 2023

What are you trying to achieve?

Type secret/password using I.appendField() and I.type()

What do you get instead?

Getting error

 When I type "$$test123" password in "Name Input" 
      I append field Name Input, *****
    [1] Retrying... Attempt #2
    [1] Retrying... Attempt #3
    [1] Retrying... Attempt #4
    [1] Retrying... Attempt #5
    [1] Retrying... Attempt #6
    [1] Error | Error: elementHandle.type: text: expected string, got object
    [1] Error | Error: elementHandle.type: text: expected string, got object
    [1] <teardown> Stopping recording promises

test source code if related

I.appendField("#myTextField", secret("secretText");

Details

  • CodeceptJS version: 3.4.1
  • NodeJS Version: 18.13.0
  • Operating System: Windows
@kobenguyent
Copy link
Collaborator

I think currently only fillField supports this.

@anils92
Copy link
Contributor Author

anils92 commented Mar 8, 2023

Yes, I agree but It would be better to implement it for the rest of the methods as well which are used to type.
Hence created the ticket.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants