Forum Discussion

AdamUK's avatar
AdamUK
Occasional Contributor
6 years ago

Getting the parameter passed as URL in a Browser Loop.

I have a Browser Loop in a Keyword Test.  I manually select a variable containing a URL  as the parameter for this.

 

Later on in the test I would like to be able to get whatever variable I selected for the Browser Loop and use it for other things.  

 

How would I do this? 

5 Replies

  • tristaanogre's avatar
    tristaanogre
    Esteemed Contributor

    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.

    • AdamUK's avatar
      AdamUK
      Occasional Contributor

      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. 

      • tristaanogre's avatar
        tristaanogre
        Esteemed 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.