Anand5Phadke
2 years agoOccasional Contributor
How we can use the element or object or variables declared in one script in another script?
We want to create a modular code where we will store all elements, objects and variables in one java script(ObjectRepository).
Another script will have the common functions which will consume the elements,objects and variables from ObjectRepository.
Another script will have the actual test cases which will consume the elements,objects and variables from ObjectRepository, along with the common functions.
Would like to know how it can be implemented? Where can I get the examples as per the above structure mentioned.
Will appreciate if any one can share any dummy sample codes or files