Forum Discussion

blbdt36's avatar
blbdt36
Contributor
9 years ago
Solved

Using a variable in the code is not working the same as putting in the exact webpage

I have an input file that holds all the data I need for my tests.  This allows the user to update as needed and still be able to run the tests.  I also want to be able to use this file to select the ...
  • Marsha_R's avatar
    9 years ago

    What you have in the testenvironment variable is a string and you need it to be an object. 

     

    In vbscript I would use

     

    set testenvironment = "Aliases.browser." + testenvironment

     

    or maybe

     

    testenvironment = eval("Aliases.browser." + testenvironment)