Forum Discussion
You should be able to use the same variable everywhere through the test case. Basically, whatever variable you used in the loop, reference that same variable in the test case.
Hi, yes I can do that and it'll work it's just ideally I would like it set to whatever was used in the Browser Loop. It's not a big issue, just an extra selection for each test is all.
- tristaanogre6 years agoEsteemed Contributor
I'm not sure I understand.
In your keyword test, you have a browser loop that executes a browser for a URL. That URL... is it set to a Variable in the loop or, after the loop starts, you get prompted to select the value? I'm not sure I understand how things are working in your test.
- AdamUK6 years agoOccasional Contributor
The variable contains a string (URL) which the user can select in the Browser Loop operation. That's the start of the main loop. There is no prompt to select anything.
- tristaanogre6 years agoEsteemed Contributor
OK then... what I indicated still stands. Whatever variable you use when setting up the Browser Loop operation, utilize that variable throughout the steps within the loop. Basically, any operation that takes a parameter you can set that parameter to reference a variable for the value. This includes property checkpoints, if then statements, Keys, SetText, and other similar operations.
Related Content
- 8 years agosandrino
Recent Discussions
- 12 hours agotramuntana
- 3 days agoSlickRick