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

eraseText - Cannot deserialize value of type int from String "${output.email.size}": not a valid int value #2212

Open
1 task done
LinschotenMelle opened this issue Dec 20, 2024 · 2 comments

Comments

@LinschotenMelle
Copy link

Is there an existing issue for this?

  • I have searched the existing issues and didn't find mine.

Steps to reproduce

query.js:

output.email = '[email protected]';
output.email.size = output.email.length;

  • eraseText: ${output.email.size}

flow.yaml:

  • runScript: ./auth.js
  • inputText: ${output.email}
  • eraseText: ${output.email.size}

Actual results

image

Expected results

To serialize into the length of the email

About app

Flutter application

About environment

M4 MacBook Air

Logs

Logs
<!-- Replace this line with your logs. *DO NOT* remove the backticks! -->

Maestro version

1.39.7

How did you install Maestro?

Homebrew

Anything else?

For now im setting a static number of 100 characters that can be erased but this would be a better way

@Fishbowler
Copy link
Contributor

Right now, the charactersToErase value is a bare Integer, and isn't interpolating JavaScript. To support this, we'd need to rework it like the extendedWaitUntil's timeout, where it's a String on the outside, but translated to a long during its journey between YAML parsing and the driver service.

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

No branches or pull requests

2 participants