Skip to content

Can't pass in a variable to setOrientation #3039

@jostut

Description

@jostut

Is there an existing issue for this?

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

Steps to reproduce

  1. Open any project that uses runFlow to run steps from a separate file
  2. Add an ENV variable that will pass in any setOrientation value (PORTRAIT)
  3. In that separate file, add a setOrientation step and try to pass in the ENV variable
  4. Run your tests
Image

Actual results

The maestro test auto fail at the parsing step. I did confirm the variable is getting a value

Image

Expected results

I would like to be able to dynamically set the orientation

About app

The project I am using maestro on is a closed project

About environment

openjdk 17.0.15 2025-04-15 LTS
OpenJDK Runtime Environment Zulu17.58+21-CA (build 17.0.15+6-LTS)
OpenJDK 64-Bit Server VM Zulu17.58+21-CA (build 17.0.15+6-LTS, mixed mode, sharing)

Logs

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

Maestro version

2.2.0

How did you install Maestro?

other (please specify in the text area below)

Anything else?

I downloaded through the Window steps

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions