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

Using a dynamic variable as the timing for wait step #122

Closed
kensoh opened this issue Apr 7, 2018 · 1 comment
Closed

Using a dynamic variable as the timing for wait step #122

kensoh opened this issue Apr 7, 2018 · 1 comment
Labels

Comments

@kensoh
Copy link
Member

kensoh commented Apr 7, 2018

Raising this from an user email for sharing, as other users might benefit from this question.


Can ask you a quick question?

The following code will loop 3 times, each time wait for 1 second.

for (n=10; n<=12; n++)
{
echo "n = " + n
wait 1
}

But why the following code does not work?

for (n=10; n<=12; n++)
{
echo "n = " + n
wait '+n+'
}

Thought it will wait for 10s, then 11s then 12s. But it didn't. It just zoom past all without any waiting.

How come wait does not work with the '+variable+'?

@kensoh kensoh added the feature label Apr 7, 2018
kensoh added a commit that referenced this issue Apr 7, 2018
@kensoh
Copy link
Member Author

kensoh commented Apr 7, 2018

The wait step wasn't designed with a use scenario of having dynamic variable as timing. I've made a commit so this works now with TagUI cutting edge version. Looking through the TagUI steps, it looks like almost all now supports the use of dynamic variables, except those non-applicable ones.

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

No branches or pull requests

1 participant