Replies: 2 comments 3 replies
-
Hi, Can you please give us a sample to replicate this ? |
Beta Was this translation helpful? Give feedback.
3 replies
-
Good catch. I think this is a risk with all selectors unless there is some sort of mechanism to lazily evaluate the positions whenever it is used. While not ideal, the script should be not assign selectors to variables as the page can change state for other actions too. For example.
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a step definition that is failing:
But it fails at
await write(value, into(txtBox))
line:This is weird, because
await scrollTo(txtBox, { blockAlignment: 'center', inlineAligment: 'center' })
works as expected, so there is corresponding element.Also if I replace
txtBox
withtextBox(below(text(fieldLabel)), near(text(fieldLabel)))
insidescrollTo
andwrite
method calls, then this code words. So it looks like as soon as I used txtBox variable it is not holding actual element anymore.Beta Was this translation helpful? Give feedback.
All reactions